openai / guided-diffusion
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 22 files with 4,050 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,236 lines of code)
    • 4 medium size files (1,436 lines of code)
    • 4 small files (588 lines of code)
    • 12 very small files (790 lines of code)
0% | 30% | 35% | 14% | 19%
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% | 30% | 35% | 14% | 19%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
guided_diffusion0% | 43% | 34% | 10% | 12%
evaluations0% | 0% | 100% | 0% | 0%
scripts0% | 0% | 0% | 42% | 57%
datasets0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
unet.py
in guided_diffusion
656 31
gaussian_diffusion.py
in guided_diffusion
580 27
evaluator.py
in evaluations
464 41
script_util.py
in guided_diffusion
401 15
logger.py
in guided_diffusion
327 49
train_util.py
in guided_diffusion
244 16
189 6
fp16_util.py
in guided_diffusion
171 22
image_datasets.py
in guided_diffusion
119 7
109 2
97 3
image_sample.py
in scripts
89 2
nn.py
in guided_diffusion
83 14
respace.py
in guided_diffusion
83 10
80 3
resample.py
in guided_diffusion
78 11
image_nll.py
in scripts
73 3
image_train.py
in scripts
68 2
dist_util.py
in guided_diffusion
58 5
lsun_bedroom.py
in datasets
40 3
losses.py
in guided_diffusion
40 3
__init__.py
in guided_diffusion
1 -
Files With Most Units (Top 21)
File# lines# units
logger.py
in guided_diffusion
327 49
evaluator.py
in evaluations
464 41
unet.py
in guided_diffusion
656 31
gaussian_diffusion.py
in guided_diffusion
580 27
fp16_util.py
in guided_diffusion
171 22
train_util.py
in guided_diffusion
244 16
script_util.py
in guided_diffusion
401 15
nn.py
in guided_diffusion
83 14
resample.py
in guided_diffusion
78 11
respace.py
in guided_diffusion
83 10
image_datasets.py
in guided_diffusion
119 7
189 6
dist_util.py
in guided_diffusion
58 5
lsun_bedroom.py
in datasets
40 3
losses.py
in guided_diffusion
40 3
80 3
97 3
image_nll.py
in scripts
73 3
image_sample.py
in scripts
89 2
109 2
image_train.py
in scripts
68 2
Files With Long Lines (Top 1)

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

File# lines# units# long lines
evaluator.py
in evaluations
464 41 1
Correlations

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

guided_diffusion/fp16_util.py x: 2 commits (all time) y: 171 lines of code evaluations/evaluator.py x: 1 commits (all time) y: 464 lines of code guided_diffusion/script_util.py x: 2 commits (all time) y: 401 lines of code guided_diffusion/unet.py x: 1 commits (all time) y: 656 lines of code scripts/super_res_sample.py x: 1 commits (all time) y: 97 lines of code guided_diffusion/dist_util.py x: 2 commits (all time) y: 58 lines of code
656.0
lines of code
  min: 58.0
  average: 307.83
  25th percentile: 87.25
  median: 286.0
  75th percentile: 512.0
  max: 656.0
0 2.0
commits (all time)
min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 2.0

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

guided_diffusion/fp16_util.py x: 1 contributors (all time) y: 171 lines of code evaluations/evaluator.py x: 1 contributors (all time) y: 464 lines of code guided_diffusion/script_util.py x: 1 contributors (all time) y: 401 lines of code guided_diffusion/unet.py x: 1 contributors (all time) y: 656 lines of code scripts/super_res_sample.py x: 1 contributors (all time) y: 97 lines of code guided_diffusion/dist_util.py x: 1 contributors (all time) y: 58 lines of code
656.0
lines of code
  min: 58.0
  average: 307.83
  25th percentile: 87.25
  median: 286.0
  75th percentile: 512.0
  max: 656.0
0 1.0
contributors (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.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".