awslabs / sagemaker-defect-detection
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 26 files with 2,124 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,010 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (470 lines of code)
    • 19 very small files (644 lines of code)
0% | 0% | 47% | 22% | 30%
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% | 50% | 19% | 29%
yaml0% | 0% | 41% | 32% | 25%
toml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/sagemaker_defect_detection0% | 0% | 87% | 0% | 12%
cloudformation0% | 0% | 45% | 36% | 18%
src/sagemaker_defect_detection/utils0% | 0% | 56% | 0% | 43%
src/sagemaker_defect_detection/models0% | 0% | 0% | 99% | <1%
src/sagemaker_defect_detection/dataset0% | 0% | 0% | 99% | <1%
src/prepare_data0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
cloudformation/solution-assistant/src0% | 0% | 0% | 0% | 100%
cloudformation/solution-assistant0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
detector.py
in src/sagemaker_defect_detection
370 14
classifier.py
in src/sagemaker_defect_detection
223 16
defect-detection.yaml
in cloudformation
212 -
coco_eval.py
in src/sagemaker_defect_detection/utils
205 16
ddn.py
in src/sagemaker_defect_detection/models
178 13
defect-detection-permissions.yaml
in cloudformation
166 -
neu.py
in src/sagemaker_defect_detection/dataset
126 8
defect-detection-sagemaker-notebook-instance.yaml
in cloudformation
83 -
visualize.py
in src/sagemaker_defect_detection/utils
79 3
neu.py
in src/prepare_data
77 4
lambda_fn.py
in cloudformation/solution-assistant/src
76 9
transforms.py
in src/sagemaker_defect_detection
66 3
solution-assistant.yaml
in cloudformation/solution-assistant
46 -
__init__.py
in src/sagemaker_defect_detection/utils
42 4
coco_utils.py
in src/sagemaker_defect_detection/utils
36 1
setup.py
in root
27 -
pyproject.toml
in root
26 -
__init__.py
in src/sagemaker_defect_detection
22 -
find_best_ckpt.py
in scripts
19 2
set_kernelspec.py
in scripts
18 1
cfg
setup.cfg
in root
16 -
in
requirements.in
in root
7 -
__init__.py
in src/sagemaker_defect_detection/dataset
1 -
__init__.py
in src/sagemaker_defect_detection/models
1 -
in
requirements.in
in cloudformation/solution-assistant
1 -
in
MANIFEST.in
in root
1 -
Files With Most Units (Top 13)
File# lines# units
coco_eval.py
in src/sagemaker_defect_detection/utils
205 16
classifier.py
in src/sagemaker_defect_detection
223 16
detector.py
in src/sagemaker_defect_detection
370 14
ddn.py
in src/sagemaker_defect_detection/models
178 13
lambda_fn.py
in cloudformation/solution-assistant/src
76 9
neu.py
in src/sagemaker_defect_detection/dataset
126 8
__init__.py
in src/sagemaker_defect_detection/utils
42 4
neu.py
in src/prepare_data
77 4
transforms.py
in src/sagemaker_defect_detection
66 3
visualize.py
in src/sagemaker_defect_detection/utils
79 3
find_best_ckpt.py
in scripts
19 2
coco_utils.py
in src/sagemaker_defect_detection/utils
36 1
set_kernelspec.py
in scripts
18 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
defect-detection.yaml
in cloudformation
212 - 4
defect-detection-sagemaker-notebook-instance.yaml
in cloudformation
83 - 1