openai / gym3
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 25 files with 1,921 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (548 lines of code)
    • 4 small files (648 lines of code)
    • 19 very small files (725 lines of code)
0% | 0% | 28% | 33% | 37%
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% | 32% | 30% | 37%
c0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
gym30% | 0% | 28% | 33% | 37%
Longest Files (Top 25)
File# lines# units
libenv.py
in gym3
284 17
interop.py
in gym3
264 30
199 9
renderer.py
in gym3/internal
177 10
subproc.py
in gym3
144 12
128 7
viewer.py
in gym3
99 5
types.py
in gym3
90 24
libenv.h
in gym3
86 -
82 5
75 4
concat.py
in gym3
45 6
44 -
random_agent.py
in gym3/scripts
42 1
41 7
35 7
23 5
wrapper.py
in gym3
20 6
env.py
in gym3
17 5
8 2
misc.py
in gym3/internal
8 2
util.py
in gym3
6 1
2 -
__init__.py
in gym3/internal
1 -
__init__.py
in gym3/scripts
1 -
Files With Most Units (Top 20)
File# lines# units
interop.py
in gym3
264 30
types.py
in gym3
90 24
libenv.py
in gym3
284 17
subproc.py
in gym3
144 12
renderer.py
in gym3/internal
177 10
199 9
41 7
128 7
35 7
concat.py
in gym3
45 6
wrapper.py
in gym3
20 6
env.py
in gym3
17 5
viewer.py
in gym3
99 5
82 5
23 5
75 4
8 2
misc.py
in gym3/internal
8 2
util.py
in gym3
6 1
random_agent.py
in gym3/scripts
42 1
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 6 long lines.

File# lines# units# long lines
interop.py
in gym3
264 30 4
subproc.py
in gym3
144 12 1
renderer.py
in gym3/internal
177 10 1
Correlations

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

gym3/interop.py x: 8 commits (all time) y: 264 lines of code gym3/interactive.py x: 3 commits (all time) y: 199 lines of code gym3/viewer.py x: 4 commits (all time) y: 99 lines of code gym3/internal/renderer.py x: 2 commits (all time) y: 177 lines of code gym3/trajectory_recorder.py x: 2 commits (all time) y: 75 lines of code gym3/types.py x: 2 commits (all time) y: 90 lines of code gym3/libenv.h x: 2 commits (all time) y: 86 lines of code gym3/__init__.py x: 1 commits (all time) y: 44 lines of code gym3/asynchronous.py x: 1 commits (all time) y: 23 lines of code gym3/concat.py x: 1 commits (all time) y: 45 lines of code gym3/env.py x: 1 commits (all time) y: 17 lines of code gym3/extract_dict_ob.py x: 1 commits (all time) y: 8 lines of code gym3/internal/__init__.py x: 1 commits (all time) y: 1 lines of code gym3/libenv.py x: 1 commits (all time) y: 284 lines of code gym3/libenv_fixedseq.c x: 1 commits (all time) y: 128 lines of code gym3/scripts/random_agent.py x: 1 commits (all time) y: 42 lines of code gym3/subproc.py x: 1 commits (all time) y: 144 lines of code gym3/types_np.py x: 1 commits (all time) y: 41 lines of code gym3/types_th.py x: 1 commits (all time) y: 35 lines of code gym3/util.py x: 1 commits (all time) y: 6 lines of code gym3/video_recorder.py x: 1 commits (all time) y: 82 lines of code gym3/wrapper.py x: 1 commits (all time) y: 20 lines of code gym3/wrappers.py x: 1 commits (all time) y: 2 lines of code
284.0
lines of code
  min: 1.0
  average: 76.84
  25th percentile: 12.5
  median: 44.0
  75th percentile: 113.5
  max: 284.0
0 8.0
commits (all time)
min: 1.0 | average: 1.64 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 8.0

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

gym3/interop.py x: 3 contributors (all time) y: 264 lines of code gym3/interactive.py x: 2 contributors (all time) y: 199 lines of code gym3/viewer.py x: 2 contributors (all time) y: 99 lines of code gym3/internal/renderer.py x: 1 contributors (all time) y: 177 lines of code gym3/trajectory_recorder.py x: 1 contributors (all time) y: 75 lines of code gym3/types.py x: 1 contributors (all time) y: 90 lines of code gym3/libenv.h x: 1 contributors (all time) y: 86 lines of code gym3/__init__.py x: 1 contributors (all time) y: 44 lines of code gym3/asynchronous.py x: 1 contributors (all time) y: 23 lines of code gym3/concat.py x: 1 contributors (all time) y: 45 lines of code gym3/env.py x: 1 contributors (all time) y: 17 lines of code gym3/extract_dict_ob.py x: 1 contributors (all time) y: 8 lines of code gym3/internal/__init__.py x: 1 contributors (all time) y: 1 lines of code gym3/libenv.py x: 1 contributors (all time) y: 284 lines of code gym3/libenv_fixedseq.c x: 1 contributors (all time) y: 128 lines of code gym3/scripts/random_agent.py x: 1 contributors (all time) y: 42 lines of code gym3/subproc.py x: 1 contributors (all time) y: 144 lines of code gym3/types_np.py x: 1 contributors (all time) y: 41 lines of code gym3/types_th.py x: 1 contributors (all time) y: 35 lines of code gym3/util.py x: 1 contributors (all time) y: 6 lines of code gym3/video_recorder.py x: 1 contributors (all time) y: 82 lines of code gym3/wrapper.py x: 1 contributors (all time) y: 20 lines of code gym3/wrappers.py x: 1 contributors (all time) y: 2 lines of code
284.0
lines of code
  min: 1.0
  average: 76.84
  25th percentile: 12.5
  median: 44.0
  75th percentile: 113.5
  max: 284.0
0 3.0
contributors (all time)
min: 1.0 | average: 1.16 | 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".