amazon-research / unified-ept
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 37 files with 4,534 lines of code.
    • 1 very long files (1,229 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,278 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,129 lines of code)
    • 23 very small files (898 lines of code)
27% | 0% | 28% | 24% | 19%
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
cuh100% | 0% | 0% | 0% | 0%
py0% | 0% | 41% | 32% | 26%
cu0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
models/ops/src86% | 0% | 0% | 8% | 4%
models0% | 0% | 57% | 33% | 8%
modified_mmseg/datasets/pipelines0% | 0% | 63% | 30% | 6%
modified_mmseg/datasets0% | 0% | 37% | 38% | 24%
ROOT0% | 0% | 0% | 45% | 54%
configs0% | 0% | 0% | 33% | 66%
modified_mmseg/apis0% | 0% | 0% | 0% | 100%
models/ops/modules0% | 0% | 0% | 0% | 100%
models/ops/functions0% | 0% | 0% | 0% | 100%
modified_mmseg0% | 0% | 0% | 0% | 100%
Longest Files (Top 37)
File# lines# units
ms_deform_im2col_cuda.cuh
in models/ops/src/cuda
1229 -
transforms.py
in modified_mmseg/datasets/pipelines
443 51
vision_transformer.py
in models
347 24
UN_EPT.py
in models
271 11
custom.py
in modified_mmseg/datasets
217 13
context_branch.py
in models
197 21
base.py
in models
159 13
ms_deform_attn_cuda.cu
in models/ops/src/cuda
124 -
cityscapes.py
in modified_mmseg/datasets
115 6
formating.py
in modified_mmseg/datasets/pipelines
114 18
builder.py
in modified_mmseg/datasets
110 4
train.py
in root
106 2
loading.py
in modified_mmseg/datasets/pipelines
102 7
res50_unept_ade20k.py
in configs
102 -
deit_unept_pcontext.py
in configs
100 -
deit_unept_ade20k.py
in configs
99 -
test.py
in root
99 2
train.py
in modified_mmseg/apis
84 2
ade.py
in modified_mmseg/datasets
73 1
ms_deform_attn.py
in models/ops/modules
73 4
deformable_attn.py
in models
68 4
ms_deform_attn.h
in models/ops/src
46 -
ms_deform_attn_func.py
in models/ops/functions
39 3
pascal_context.py
in modified_mmseg/datasets
37 1
compose.py
in modified_mmseg/datasets/pipelines
29 3
spatial_branch.py
in models
27 4
builder.py
in root
26 6
__init__.py
in modified_mmseg
21 1
dataset_wrappers.py
in modified_mmseg/datasets
20 4
ms_deform_attn_cuda.h
in models/ops/src/cuda
17 -
__init__.py
in modified_mmseg/datasets/pipelines
15 -
__init__.py
in modified_mmseg/datasets
11 -
__init__.py
in modified_mmseg/apis
6 -
vision.cpp
in models/ops/src
5 -
__init__.py
in models
1 -
__init__.py
in models/ops/modules
1 -
__init__.py
in models/ops/functions
1 -
Files With Most Units (Top 20)
File# lines# units
transforms.py
in modified_mmseg/datasets/pipelines
443 51
vision_transformer.py
in models
347 24
context_branch.py
in models
197 21
formating.py
in modified_mmseg/datasets/pipelines
114 18
custom.py
in modified_mmseg/datasets
217 13
base.py
in models
159 13
UN_EPT.py
in models
271 11
loading.py
in modified_mmseg/datasets/pipelines
102 7
cityscapes.py
in modified_mmseg/datasets
115 6
builder.py
in root
26 6
dataset_wrappers.py
in modified_mmseg/datasets
20 4
builder.py
in modified_mmseg/datasets
110 4
spatial_branch.py
in models
27 4
ms_deform_attn.py
in models/ops/modules
73 4
deformable_attn.py
in models
68 4
compose.py
in modified_mmseg/datasets/pipelines
29 3
ms_deform_attn_func.py
in models/ops/functions
39 3
train.py
in root
106 2
train.py
in modified_mmseg/apis
84 2
test.py
in root
99 2
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 44 long lines.

File# lines# units# long lines
vision_transformer.py
in models
347 24 17
ms_deform_im2col_cuda.cuh
in models/ops/src/cuda
1229 - 6
ms_deform_attn.py
in models/ops/modules
73 4 4
ms_deform_attn_func.py
in models/ops/functions
39 3 4
test.py
in root
99 2 4
deformable_attn.py
in models
68 4 3
train.py
in root
106 2 2
context_branch.py
in models
197 21 2
UN_EPT.py
in models
271 11 1
spatial_branch.py
in models
27 4 1