aws / amazon-s3-plugin-for-pytorch
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 43 units with 423 lines of code in units (59.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (209 lines of code)
    • 8 small units (99 lines of code)
    • 27 very small units (115 lines of code)
0% | 0% | 49% | 23% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 0% | 66% | 19% | 14%
py0% | 0% | 33% | 27% | 38%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
awsio/csrc/io/s30% | 0% | 66% | 19% | 14%
awsio/python/lib/io/s30% | 0% | 32% | 31% | 36%
ROOT0% | 0% | 44% | 21% | 33%
tools0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void S3Init::list_files()
in awsio/csrc/io/s3/s3_io.cpp
38 7 2
void S3Init::s3_read()
in awsio/csrc/io/s3/s3_io.cpp
27 4 2
25 7 2
size_t readS3TransferManager()
in awsio/csrc/io/s3/s3_io.cpp
25 2 3
def tardata()
in awsio/python/lib/io/s3/s3dataset.py
25 13 2
void parseS3Path()
in awsio/csrc/io/s3/s3_io.cpp
24 7 3
def __iter__()
in awsio/python/lib/io/s3/s3dataset.py
24 8 1
size_t readS3Client()
in awsio/csrc/io/s3/s3_io.cpp
21 2 3
size_t S3Init::get_file_size()
in awsio/csrc/io/s3/s3_io.cpp
14 2 2
def create_urls_list()
in awsio/python/lib/io/s3/s3dataset.py
14 4 2
13 2 0
def run()
in setup.py
12 6 1
bool S3Init::file_exists()
in awsio/csrc/io/s3/s3_io.cpp
12 2 1
def worker_dist()
in awsio/python/lib/io/s3/s3dataset.py
12 3 2
def zipdata()
in awsio/python/lib/io/s3/s3dataset.py
11 4 2
def download_data()
in awsio/python/lib/io/s3/s3dataset.py
11 5 2
def __init__()
in awsio/python/lib/io/s3/s3dataset.py
8 3 3
void ShutdownClient()
in awsio/csrc/io/s3/s3_io.cpp
7 2 1
size_t read()
in awsio/csrc/io/s3/s3_io.cpp
7 2 3
def get_version()
in tools/get_version.py
6 2 0