awslabs / aws-fleet-predictive-maintenance
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 18 files with 969 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (474 lines of code)
    • 14 very small files (495 lines of code)
0% | 0% | 0% | 48% | 51%
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% | 0% | 36% | 63%
yaml0% | 0% | 0% | 78% | 21%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cloudformation0% | 0% | 0% | 82% | 17%
sagemaker/source0% | 0% | 0% | 100% | 0%
sagemaker/source/dataset0% | 0% | 0% | 99% | <1%
sagemaker/source/dl_utils0% | 0% | 0% | 0% | 100%
sagemaker/source/visualization0% | 0% | 0% | 0% | 100%
sagemaker/source/preprocessing0% | 0% | 0% | 0% | 100%
sagemaker/source/config0% | 0% | 0% | 0% | 100%
sagemaker/config0% | 0% | 0% | 0% | 100%
sagemaker/scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
train.py
in sagemaker/source
145 3
aws-fleet-predictive-maintenance.yaml
in cloudformation
116 -
aws-fleet-predictive-maintenance-permissions.yaml
in cloudformation
108 -
dataset_generator.py
in sagemaker/source/dataset
105 12
dataset.py
in sagemaker/source/dl_utils
98 10
model_visualisation_utils.py
in sagemaker/source/visualization
84 3
preprocessing.py
in sagemaker/source/preprocessing
61 2
aws-fleet-predictive-maintenance-sagemaker.yaml
in cloudformation
48 -
network.py
in sagemaker/source/dl_utils
40 2
inference.py
in sagemaker/source/dl_utils
39 2
dataframewriter.py
in sagemaker/source/preprocessing
34 3
__init__.py
in sagemaker/source/config
23 3
stratified_sampler.py
in sagemaker/source/dl_utils
22 4
plot_utils.py
in sagemaker/source/visualization
18 1
config.yaml
in sagemaker/config
14 -
data_preprocessing.py
in sagemaker/scripts
10 -
__init__.py
in sagemaker/source/preprocessing
3 -
__init__.py
in sagemaker/source/dataset
1 -
Files With Most Units (Top 11)
File# lines# units
dataset_generator.py
in sagemaker/source/dataset
105 12
dataset.py
in sagemaker/source/dl_utils
98 10
stratified_sampler.py
in sagemaker/source/dl_utils
22 4
train.py
in sagemaker/source
145 3
dataframewriter.py
in sagemaker/source/preprocessing
34 3
model_visualisation_utils.py
in sagemaker/source/visualization
84 3
__init__.py
in sagemaker/source/config
23 3
preprocessing.py
in sagemaker/source/preprocessing
61 2
inference.py
in sagemaker/source/dl_utils
39 2
network.py
in sagemaker/source/dl_utils
40 2
plot_utils.py
in sagemaker/source/visualization
18 1
Files With Long Lines (Top 5)

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

File# lines# units# long lines
aws-fleet-predictive-maintenance.yaml
in cloudformation
116 - 3
aws-fleet-predictive-maintenance-sagemaker.yaml
in cloudformation
48 - 1
train.py
in sagemaker/source
145 3 1
dataset_generator.py
in sagemaker/source/dataset
105 12 1
model_visualisation_utils.py
in sagemaker/source/visualization
84 3 1