aws-samples / aws-secrets-manager-acm-certificate-rotation
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 126 files with 29,334 lines of code.
    • 4 very long files (6,711 lines of code)
    • 13 long files (9,296 lines of code)
    • 24 medium size files (7,621 lines of codeclsfd_ftr_w_mp_ins)
    • 25 small files (3,381 lines of code)
    • 60 very small files (2,325 lines of code)
22% | 31% | 25% | 11% | 7%
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
py24% | 31% | 24% | 11% | 8%
yaml0% | 59% | 40% | 0% | 0%
h0% | 0% | 68% | 31% | 0%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply59% | 37% | 0% | 0% | 3%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat19% | 6% | 36% | 22% | 15%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi17% | 52% | 17% | 9% | 2%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x50942% | 17% | 33% | 5% | <1%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser0% | 61% | 31% | 0% | 6%
Lambda/Layer/crypto/python/lib/python3.8/site-packages0% | 100% | 0% | 0% | 0%
CloudFormation_Templates0% | 59% | 40% | 0% | 0%
Lambda/Function0% | 0% | 100% | 0% | 0%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography0% | 0% | 0% | 74% | 25%
Lambda/Layer/crypto/python/lib/python3.8/site-packages/pem0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
yacc.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
2111 107
backend.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
2033 139
recompiler.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
1297 96
extensions.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
1270 192
backend_ctypes.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
953 74
vengine_cpy.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
875 51
c_parser.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
840 159
cparser.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
799 37
c_ast.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
791 147
lex.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
719 42
six.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages
677 62
decode_asn1.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
672 48
src_account.yaml
in CloudFormation_Templates
666 -
api.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
628 50
cpp.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
595 27
vengine_gen.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
552 41
base.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
529 88
encode_asn1.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
491 37
x509.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
485 66
model.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
482 61
ssh.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/serialization
471 46
dest_account.yaml
in CloudFormation_Templates
453 -
rsa.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
399 27
ocsp.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
354 34
ec.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric
323 35
c_generator.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
321 60
sm_rotate_secrets.py
in Lambda/Function
296 11
_embedding.h
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
294 10
_cffi_include.h
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
292 2
ocsp.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
287 41
c_lexer.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
280 37
_conditional.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/bindings/openssl
272 37
general_name.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
265 44
ec.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
261 27
verifier.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
242 22
oid.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
235 -
__init__.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
234 -
dh.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
230 20
_ast_gen.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
226 15
dsa.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
214 24
rsa.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric
214 33
ciphers.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
191 6
cffi_opcode.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
173 5
name.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
165 27
hashes.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives
162 14
base.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/ciphers
161 25
parse_c_type.h
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
157 -
fernet.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography
148 17
setuptools_ext.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
147 7
dsa.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric
144 33
Files With Most Units (Top 20)
File# lines# units
extensions.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
1270 192
c_parser.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
840 159
c_ast.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
791 147
backend.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
2033 139
yacc.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
2111 107
recompiler.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
1297 96
base.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
529 88
backend_ctypes.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
953 74
x509.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
485 66
six.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages
677 62
model.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
482 61
c_generator.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
321 60
interfaces.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends
143 55
vengine_cpy.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
875 51
api.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
628 50
decode_asn1.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl
672 48
ssh.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/hazmat/primitives/serialization
471 46
general_name.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cryptography/x509
265 44
lex.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
719 42
vengine_gen.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
552 41
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 28 long lines.

File# lines# units# long lines
sm_rotate_secrets.py
in Lambda/Function
296 11 6
lex.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
719 42 6
src_account.yaml
in CloudFormation_Templates
666 - 5
cpp.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser/ply
595 27 4
api.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/cffi
628 50 2
dest_account.yaml
in CloudFormation_Templates
453 - 2
c_lexer.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
280 37 1
_ast_gen.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
226 15 1
c_ast.py
in Lambda/Layer/crypto/python/lib/python3.8/site-packages/pycparser
791 147 1