aws-samples / amazon-comprehend-examples
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 14 files with 952 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (337 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (305 lines of code)
    • 11 very small files (310 lines of code)
0% | 0% | 35% | 32% | 32%
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
yaml0% | 0% | 69% | 30% | 0%
py0% | 0% | 0% | 33% | 66%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
s3_object_lambda_pii_protection_blog/redaction0% | 0% | 100% | 0% | 0%
amazon_comprehend_events_tutorial/notebooks0% | 0% | 0% | 100% | 0%
s3_object_lambda_pii_protection_blog/access-control0% | 0% | 0% | 100% | 0%
comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier0% | 0% | 0% | 0% | 100%
comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer0% | 0% | 0% | 0% | 100%
comprehend_groundtruth_integration/src0% | 0% | 0% | 0% | 100%
comprehend_groundtruth_integration/src/comprehend_customer_scripts0% | 0% | 0% | 0% | 100%
comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
s3olap-redaction-foundation.yaml
in s3_object_lambda_pii_protection_blog/redaction
337 -
events_graph.py
in amazon_comprehend_events_tutorial/notebooks
158 5
s3olap-access-control-foundation.yaml
in s3_object_lambda_pii_protection_blog/access-control
147 -
groundtruth_to_comprehend_clr_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
91 8
groundtruth_to_comprehend_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
85 6
groundtruth_format_conversion_handler.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
50 5
groundtruth_format_conversion_handler.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
48 5
customer_errors.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
17 -
customer_errors.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
14 -
__init__.py
in comprehend_groundtruth_integration/src
1 -
__init__.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts
1 -
__init__.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth
1 -
__init__.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
1 -
__init__.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
1 -
Files With Most Units (Top 5)
File# lines# units
groundtruth_to_comprehend_clr_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
91 8
groundtruth_to_comprehend_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
85 6
events_graph.py
in amazon_comprehend_events_tutorial/notebooks
158 5
groundtruth_format_conversion_handler.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
48 5
groundtruth_format_conversion_handler.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
50 5
Files With Long Lines (Top 7)

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

File# lines# units# long lines
groundtruth_to_comprehend_clr_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
91 8 4
s3olap-redaction-foundation.yaml
in s3_object_lambda_pii_protection_blog/redaction
337 - 4
customer_errors.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
14 - 2
groundtruth_format_conversion_handler.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
50 5 2
s3olap-access-control-foundation.yaml
in s3_object_lambda_pii_protection_blog/access-control
147 - 2
customer_errors.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/DocumentClassifier
17 - 1
groundtruth_to_comprehend_format_converter.py
in comprehend_groundtruth_integration/src/comprehend_customer_scripts/GroundTruth/EntityRecognizer
85 6 1