pytorch / builder
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 43 files with 3,924 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,437 lines of code)
    • 3 medium size files (1,021 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (568 lines of code)
    • 34 very small files (898 lines of code)
0% | 36% | 26% | 14% | 22%
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
h0% | 100% | 0% | 0% | 0%
py0% | 24% | 47% | 17% | 11%
yml0% | 0% | 0% | 53% | 46%
yaml0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
java0% | 100% | 0% | 0% | 0%
analytics0% | 40% | 23% | 29% | 6%
ROOT0% | 0% | 100% | 0% | 0%
s3_management0% | 0% | 85% | 0% | 14%
windows/templates0% | 0% | 0% | 57% | 42%
conda/pytorch-nightly0% | 0% | 0% | 0% | 100%
windows/internal0% | 0% | 0% | 0% | 100%
ffmpeg/recipe0% | 0% | 0% | 0% | 100%
packaging/windows0% | 0% | 0% | 0% | 100%
conda/torchvision0% | 0% | 0% | 0% | 100%
manywheel/build_scripts0% | 0% | 0% | 0% | 100%
conda/vs20190% | 0% | 0% | 0% | 100%
conda/vs20170% | 0% | 0% | 0% | 100%
conda/pytorch-mutex0% | 0% | 0% | 0% | 100%
windows0% | 0% | 0% | 0% | 100%
magma/package_files0% | 0% | 0% | 0% | 100%
conda/nnpack0% | 0% | 0% | 0% | 100%
conda/cpuonly0% | 0% | 0% | 0% | 100%
conda/nccl20% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
jni.h
in java
916 140
521 30
485 38
github_analyze.py
in analytics
306 28
manage.py
in s3_management
230 18
build_task.yml
in windows/templates
195 -
146 10
125 5
cubinsizes.py
in analytics
102 7
meta.yaml
in conda/pytorch-nightly
86 -
85 5
meta.yaml
in ffmpeg/recipe
74 -
setup.py
in packaging/windows/build_pypi_pkg_download_proxy
66 2
vs2019_install.ps1
in windows/internal
52 -
meta.yaml
in conda/torchvision
44 -
backup_conda.py
in s3_management
40 3
manylinux1-check.py
in manywheel/build_scripts
35 2
linux_build_task.yml
in windows/templates
31 -
27 -
vs2017_install.ps1
in windows/internal
25 -
meta.yaml
in conda/pytorch-mutex
24 -
ssl-check.py
in manywheel/build_scripts
24 -
upload_to_s3.yml
in windows/templates
24 -
20 -
meta.yaml
in conda/vs2019
20 -
20 -
meta.yaml
in conda/vs2017
20 -
conda_build_config.yaml
in conda/torchvision
20 -
conda_build_config.yaml
in conda/pytorch-nightly
20 -
setup_env_for_msagent.yml
in windows/templates
20 -
meta.yaml
in magma/package_files
17 -
meta.yaml
in conda/nnpack
15 -
auth_task.yml
in windows/templates
14 -
meta.yaml
in conda/cpuonly
10 -
build_conda.yml
in windows/templates
10 -
upload_to_conda.yml
in windows/templates
9 -
setup_nightly_variables.yml
in windows/templates
9 -
build_wheels.yml
in windows/templates
8 -
vsts_auth.yml
in windows/templates
7 -
publish_packages.yml
in windows/templates
7 -
meta.yaml
in conda/nccl2
6 -
publish_test_results.yml
in windows/templates
6 -
conda_build_config.yaml
in conda/pytorch-mutex
3 -
Files With Most Units (Top 12)
File# lines# units
jni.h
in java
916 140
485 38
521 30
github_analyze.py
in analytics
306 28
manage.py
in s3_management
230 18
146 10
cubinsizes.py
in analytics
102 7
125 5
85 5
backup_conda.py
in s3_management
40 3
setup.py
in packaging/windows/build_pypi_pkg_download_proxy
66 2
manylinux1-check.py
in manywheel/build_scripts
35 2
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 21 long lines.

File# lines# units# long lines
521 30 13
backup_conda.py
in s3_management
40 3 2
cubinsizes.py
in analytics
102 7 2
485 38 1
vs2019_install.ps1
in windows/internal
52 - 1
85 5 1
github_analyze.py
in analytics
306 28 1
Correlations

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

conda/pytorch-nightly/meta.yaml x: 92 commits (all time) y: 86 lines of code build_aarch64_wheel.py x: 33 commits (all time) y: 485 lines of code magma/package_files/meta.yaml x: 2 commits (all time) y: 17 lines of code windows/internal/vs2019_install.ps1 x: 4 commits (all time) y: 52 lines of code conda/cpuonly/meta.yaml x: 2 commits (all time) y: 10 lines of code conda/pytorch-mutex/conda_build_config.yaml x: 1 commits (all time) y: 3 lines of code conda/pytorch-mutex/meta.yaml x: 1 commits (all time) y: 24 lines of code analytics/github_analyze.py x: 4 commits (all time) y: 306 lines of code s3_management/manage.py x: 10 commits (all time) y: 230 lines of code s3_management/backup_conda.py x: 1 commits (all time) y: 40 lines of code analytics/duplicates_analyze.py x: 2 commits (all time) y: 85 lines of code analytics/circleci_analyze.py x: 8 commits (all time) y: 521 lines of code analytics/s3_test_stats_analyze.py x: 1 commits (all time) y: 125 lines of code analytics/cubinsizes.py x: 2 commits (all time) y: 102 lines of code packaging/windows/build_pypi_pkg_download_proxy/setup.py x: 1 commits (all time) y: 66 lines of code ffmpeg/recipe/meta.yaml x: 3 commits (all time) y: 74 lines of code analytics/download_count_wheels.py x: 5 commits (all time) y: 146 lines of code windows/templates/build_task.yml x: 24 commits (all time) y: 195 lines of code windows/internal/vs2017_install.ps1 x: 3 commits (all time) y: 25 lines of code conda/vs2017/meta.yaml x: 5 commits (all time) y: 20 lines of code conda/vs2019/conda_build_config.yaml x: 1 commits (all time) y: 20 lines of code windows/templates/upload_to_s3.yml x: 12 commits (all time) y: 24 lines of code windows/templates/auth_task.yml x: 3 commits (all time) y: 14 lines of code java/jni.h x: 1 commits (all time) y: 916 lines of code windows/azure-pipelines.yml x: 30 commits (all time) y: 27 lines of code windows/templates/setup_nightly_variables.yml x: 3 commits (all time) y: 9 lines of code conda/torchvision/meta.yaml x: 2 commits (all time) y: 44 lines of code windows/templates/publish_packages.yml x: 1 commits (all time) y: 7 lines of code windows/templates/linux_build_task.yml x: 3 commits (all time) y: 31 lines of code windows/templates/publish_test_results.yml x: 2 commits (all time) y: 6 lines of code windows/templates/setup_env_for_msagent.yml x: 2 commits (all time) y: 20 lines of code conda/nnpack/meta.yaml x: 4 commits (all time) y: 15 lines of code manywheel/build_scripts/manylinux1-check.py x: 1 commits (all time) y: 35 lines of code
916.0
lines of code
  min: 3.0
  average: 91.26
  25th percentile: 14.0
  median: 24.0
  75th percentile: 85.0
  max: 916.0
0 92.0
commits (all time)
min: 1.0 | average: 6.63 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 4.0 | max: 92.0

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

conda/pytorch-nightly/meta.yaml x: 24 contributors (all time) y: 86 lines of code build_aarch64_wheel.py x: 4 contributors (all time) y: 485 lines of code magma/package_files/meta.yaml x: 2 contributors (all time) y: 17 lines of code windows/internal/vs2019_install.ps1 x: 3 contributors (all time) y: 52 lines of code conda/cpuonly/meta.yaml x: 2 contributors (all time) y: 10 lines of code conda/pytorch-mutex/conda_build_config.yaml x: 1 contributors (all time) y: 3 lines of code conda/pytorch-mutex/meta.yaml x: 1 contributors (all time) y: 24 lines of code analytics/github_analyze.py x: 2 contributors (all time) y: 306 lines of code s3_management/manage.py x: 3 contributors (all time) y: 230 lines of code s3_management/backup_conda.py x: 1 contributors (all time) y: 40 lines of code analytics/duplicates_analyze.py x: 1 contributors (all time) y: 85 lines of code analytics/circleci_analyze.py x: 1 contributors (all time) y: 521 lines of code analytics/s3_test_stats_analyze.py x: 1 contributors (all time) y: 125 lines of code analytics/cubinsizes.py x: 1 contributors (all time) y: 102 lines of code packaging/windows/build_pypi_pkg_download_proxy/setup.py x: 1 contributors (all time) y: 66 lines of code ffmpeg/recipe/meta.yaml x: 1 contributors (all time) y: 74 lines of code analytics/download_count_wheels.py x: 3 contributors (all time) y: 146 lines of code windows/templates/build_task.yml x: 7 contributors (all time) y: 195 lines of code conda/vs2017/meta.yaml x: 3 contributors (all time) y: 20 lines of code conda/vs2019/conda_build_config.yaml x: 1 contributors (all time) y: 20 lines of code windows/templates/upload_to_s3.yml x: 4 contributors (all time) y: 24 lines of code windows/templates/auth_task.yml x: 3 contributors (all time) y: 14 lines of code java/jni.h x: 1 contributors (all time) y: 916 lines of code windows/azure-pipelines.yml x: 6 contributors (all time) y: 27 lines of code windows/templates/setup_nightly_variables.yml x: 3 contributors (all time) y: 9 lines of code conda/torchvision/meta.yaml x: 2 contributors (all time) y: 44 lines of code windows/templates/publish_packages.yml x: 1 contributors (all time) y: 7 lines of code windows/templates/linux_build_task.yml x: 2 contributors (all time) y: 31 lines of code windows/templates/publish_test_results.yml x: 2 contributors (all time) y: 6 lines of code windows/templates/setup_env_for_msagent.yml x: 2 contributors (all time) y: 20 lines of code conda/nnpack/meta.yaml x: 3 contributors (all time) y: 15 lines of code manywheel/build_scripts/manylinux1-check.py x: 1 contributors (all time) y: 35 lines of code
916.0
lines of code
  min: 3.0
  average: 91.26
  25th percentile: 14.0
  median: 24.0
  75th percentile: 85.0
  max: 916.0
0 24.0
contributors (all time)
min: 1.0 | average: 2.56 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 24.0

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

conda/pytorch-nightly/meta.yaml x: 5 commits (30d) y: 86 lines of code
86.0
lines of code
  min: 86.0
  average: 86.0
  25th percentile: 86.0
  median: 86.0
  75th percentile: 86.0
  max: 86.0
0 5.0
commits (30d)
min: 5.0 | average: 5.0 | 25th percentile: 5.0 | median: 5.0 | 75th percentile: 5.0 | max: 5.0

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

conda/pytorch-nightly/meta.yaml x: 2 contributors (30d) y: 86 lines of code
86.0
lines of code
  min: 86.0
  average: 86.0
  25th percentile: 86.0
  median: 86.0
  75th percentile: 86.0
  max: 86.0
0 2.0
contributors (30d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

conda/pytorch-nightly/meta.yaml x: 12 commits (90d) y: 86 lines of code build_aarch64_wheel.py x: 6 commits (90d) y: 485 lines of code magma/package_files/meta.yaml x: 1 commits (90d) y: 17 lines of code windows/internal/vs2019_install.ps1 x: 2 commits (90d) y: 52 lines of code
485.0
lines of code
  min: 17.0
  average: 160.0
  25th percentile: 25.75
  median: 69.0
  75th percentile: 385.25
  max: 485.0
0 12.0
commits (90d)
min: 1.0 | average: 5.25 | 25th percentile: 1.25 | median: 4.0 | 75th percentile: 10.5 | max: 12.0

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

conda/pytorch-nightly/meta.yaml x: 4 contributors (90d) y: 86 lines of code build_aarch64_wheel.py x: 2 contributors (90d) y: 485 lines of code magma/package_files/meta.yaml x: 1 contributors (90d) y: 17 lines of code windows/internal/vs2019_install.ps1 x: 2 contributors (90d) y: 52 lines of code
485.0
lines of code
  min: 17.0
  average: 160.0
  25th percentile: 25.75
  median: 69.0
  75th percentile: 385.25
  max: 485.0
0 4.0
contributors (90d)
min: 1.0 | average: 2.25 | 25th percentile: 1.25 | median: 2.0 | 75th percentile: 3.5 | max: 4.0