mapillary / inplace_abn
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 38 files with 3,412 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (1,701 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,067 lines of code)
    • 23 very small files (644 lines of code)
0% | 0% | 49% | 31% | 18%
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
py0% | 0% | 56% | 21% | 21%
cu0% | 0% | 100% | 0% | 0%
cuh0% | 0% | 61% | 38% | 0%
cpp0% | 0% | 0% | 97% | 2%
h0% | 0% | 0% | 52% | 47%
pyi0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 57% | 41% | 1%
inplace_abn0% | 0% | 85% | 0% | 14%
scripts0% | 0% | 100% | 0% | 0%
scripts/imagenet0% | 0% | 68% | 0% | 31%
scripts/modules0% | 0% | 53% | 25% | 20%
scripts/models0% | 0% | 0% | 77% | 22%
include0% | 0% | 0% | 70% | 29%
scripts/dataset0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
306 5
utils.py
in scripts/imagenet
267 11
249 -
abn.py
in inplace_abn
222 13
222 -
functions.py
in inplace_abn
220 8
residual.py
in scripts/modules
215 4
195 6
wider_resnet.py
in scripts/models
162 4
141 6
cuda_utils.cuh
in include
137 -
inplace_abn.h
in include
124 6
resnext.py
in scripts/models
104 3
densenet.py
in scripts/models
102 2
deeplab.py
in scripts/modules
102 4
resnet.py
in scripts/models
96 3
transforms.py
in scripts/imagenet
72 12
dense.py
in scripts/modules
65 3
setup.py
in root
61 1
config.py
in scripts/imagenet
52 2
dispatch.h
in include
48 -
checks.h
in include
43 3
pyi
_backend.pyi
in inplace_abn
42 6
dataset.py
in scripts/dataset
33 4
group.py
in inplace_abn
28 2
utils.h
in include
20 1
sampler.py
in scripts/dataset
20 3
transform.py
in scripts/dataset
16 2
misc.py
in scripts/modules
13 4
utils.cpp
in src
10 1
__init__.py
in inplace_abn
6 -
util.py
in scripts/models
5 1
__init__.py
in scripts/models
4 -
__init__.py
in scripts/modules
4 -
in
2 -
cfg
setup.cfg
in root
2 -
__init__.py
in scripts/dataset
1 -
__init__.py
in scripts/imagenet
1 -
Files With Most Units (Top 27)
File# lines# units
abn.py
in inplace_abn
222 13
transforms.py
in scripts/imagenet
72 12
utils.py
in scripts/imagenet
267 11
functions.py
in inplace_abn
220 8
inplace_abn.h
in include
124 6
pyi
_backend.pyi
in inplace_abn
42 6
141 6
195 6
306 5
dataset.py
in scripts/dataset
33 4
wider_resnet.py
in scripts/models
162 4
misc.py
in scripts/modules
13 4
residual.py
in scripts/modules
215 4
deeplab.py
in scripts/modules
102 4
checks.h
in include
43 3
sampler.py
in scripts/dataset
20 3
resnext.py
in scripts/models
104 3
resnet.py
in scripts/models
96 3
dense.py
in scripts/modules
65 3
group.py
in inplace_abn
28 2
transform.py
in scripts/dataset
16 2
densenet.py
in scripts/models
102 2
config.py
in scripts/imagenet
52 2
utils.h
in include
20 1
setup.py
in root
61 1
util.py
in scripts/models
5 1
utils.cpp
in src
10 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
249 - 6
222 - 1
Correlations

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

include/checks.h x: 4 commits (all time) y: 43 lines of code include/cuda_utils.cuh x: 2 commits (all time) y: 137 lines of code include/dispatch.h x: 3 commits (all time) y: 48 lines of code include/inplace_abn.h x: 4 commits (all time) y: 124 lines of code include/utils.h x: 2 commits (all time) y: 20 lines of code inplace_abn/_backend.pyi x: 3 commits (all time) y: 42 lines of code inplace_abn/abn.py x: 6 commits (all time) y: 222 lines of code inplace_abn/functions.py x: 8 commits (all time) y: 220 lines of code inplace_abn/group.py x: 3 commits (all time) y: 28 lines of code scripts/dataset/dataset.py x: 2 commits (all time) y: 33 lines of code scripts/dataset/transform.py x: 2 commits (all time) y: 16 lines of code scripts/imagenet/config.py x: 2 commits (all time) y: 52 lines of code scripts/imagenet/transforms.py x: 2 commits (all time) y: 72 lines of code scripts/imagenet/utils.py x: 2 commits (all time) y: 267 lines of code scripts/models/densenet.py x: 2 commits (all time) y: 102 lines of code scripts/models/resnet.py x: 2 commits (all time) y: 96 lines of code scripts/models/resnext.py x: 2 commits (all time) y: 104 lines of code scripts/models/util.py x: 2 commits (all time) y: 5 lines of code scripts/models/wider_resnet.py x: 2 commits (all time) y: 162 lines of code scripts/modules/deeplab.py x: 3 commits (all time) y: 102 lines of code scripts/modules/dense.py x: 2 commits (all time) y: 65 lines of code scripts/modules/misc.py x: 2 commits (all time) y: 13 lines of code scripts/modules/residual.py x: 2 commits (all time) y: 215 lines of code scripts/train_imagenet.py x: 2 commits (all time) y: 306 lines of code setup.py x: 8 commits (all time) y: 61 lines of code src/inplace_abn.cpp x: 6 commits (all time) y: 195 lines of code src/inplace_abn_cpu.cpp x: 5 commits (all time) y: 141 lines of code src/inplace_abn_cuda.cu x: 4 commits (all time) y: 249 lines of code src/inplace_abn_kernels.cuh x: 5 commits (all time) y: 222 lines of code src/utils.cpp x: 2 commits (all time) y: 10 lines of code inplace_abn/__init__.py x: 4 commits (all time) y: 6 lines of code MANIFEST.in x: 1 commits (all time) y: 2 lines of code scripts/dataset/__init__.py x: 1 commits (all time) y: 1 lines of code scripts/models/__init__.py x: 1 commits (all time) y: 4 lines of code
306.0
lines of code
  min: 1.0
  average: 89.79
  25th percentile: 12.25
  median: 56.5
  75th percentile: 146.25
  max: 306.0
0 8.0
commits (all time)
min: 1.0 | average: 2.84 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 4.0 | max: 8.0

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

include/checks.h x: 2 contributors (all time) y: 43 lines of code include/cuda_utils.cuh x: 2 contributors (all time) y: 137 lines of code include/dispatch.h x: 2 contributors (all time) y: 48 lines of code include/inplace_abn.h x: 2 contributors (all time) y: 124 lines of code include/utils.h x: 2 contributors (all time) y: 20 lines of code inplace_abn/_backend.pyi x: 2 contributors (all time) y: 42 lines of code inplace_abn/abn.py x: 2 contributors (all time) y: 222 lines of code inplace_abn/functions.py x: 2 contributors (all time) y: 220 lines of code inplace_abn/group.py x: 2 contributors (all time) y: 28 lines of code scripts/dataset/dataset.py x: 2 contributors (all time) y: 33 lines of code scripts/dataset/transform.py x: 2 contributors (all time) y: 16 lines of code scripts/imagenet/config.py x: 2 contributors (all time) y: 52 lines of code scripts/imagenet/transforms.py x: 2 contributors (all time) y: 72 lines of code scripts/imagenet/utils.py x: 2 contributors (all time) y: 267 lines of code scripts/models/densenet.py x: 2 contributors (all time) y: 102 lines of code scripts/models/resnet.py x: 2 contributors (all time) y: 96 lines of code scripts/models/resnext.py x: 2 contributors (all time) y: 104 lines of code scripts/models/util.py x: 2 contributors (all time) y: 5 lines of code scripts/models/wider_resnet.py x: 2 contributors (all time) y: 162 lines of code scripts/modules/dense.py x: 2 contributors (all time) y: 65 lines of code scripts/modules/misc.py x: 2 contributors (all time) y: 13 lines of code scripts/modules/residual.py x: 2 contributors (all time) y: 215 lines of code scripts/train_imagenet.py x: 2 contributors (all time) y: 306 lines of code setup.py x: 2 contributors (all time) y: 61 lines of code src/inplace_abn.cpp x: 2 contributors (all time) y: 195 lines of code src/inplace_abn_cpu.cpp x: 3 contributors (all time) y: 141 lines of code src/inplace_abn_cuda.cu x: 2 contributors (all time) y: 249 lines of code src/utils.cpp x: 2 contributors (all time) y: 10 lines of code inplace_abn/__init__.py x: 1 contributors (all time) y: 6 lines of code MANIFEST.in x: 1 contributors (all time) y: 2 lines of code scripts/dataset/__init__.py x: 1 contributors (all time) y: 1 lines of code scripts/models/__init__.py x: 1 contributors (all time) y: 4 lines of code
306.0
lines of code
  min: 1.0
  average: 89.79
  25th percentile: 12.25
  median: 56.5
  75th percentile: 146.25
  max: 306.0
0 3.0
contributors (all time)
min: 1.0 | average: 1.84 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.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".