aws / amazon-s3-plugin-for-pytorch
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 43 units with 423 lines of code in units (59.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (25 lines of code)
    • 5 simple units (123 lines of code)
    • 37 very simple units (275 lines of code)
0% | 0% | 5% | 29% | 65%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 11% | 27% | 60%
cpp0% | 0% | 0% | 30% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
awsio/python/lib/io/s30% | 0% | 16% | 15% | 67%
awsio/csrc/io/s30% | 0% | 0% | 30% | 69%
ROOT0% | 0% | 0% | 66% | 33%
tools0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def tardata()
in awsio/python/lib/io/s3/s3dataset.py
25 13 2
def __iter__()
in awsio/python/lib/io/s3/s3dataset.py
24 8 1
25 7 2
void parseS3Path()
in awsio/csrc/io/s3/s3_io.cpp
24 7 3
void S3Init::list_files()
in awsio/csrc/io/s3/s3_io.cpp
38 7 2
def run()
in setup.py
12 6 1
def download_data()
in awsio/python/lib/io/s3/s3dataset.py
11 5 2
void S3Init::s3_read()
in awsio/csrc/io/s3/s3_io.cpp
27 4 2
def zipdata()
in awsio/python/lib/io/s3/s3dataset.py
11 4 2
def create_urls_list()
in awsio/python/lib/io/s3/s3dataset.py
14 4 2
def __init__()
in awsio/python/lib/io/s3/s3dataset.py
8 3 3
def worker_dist()
in awsio/python/lib/io/s3/s3dataset.py
12 3 2
def get_sha()
in tools/get_version.py
5 2 0
def get_version()
in tools/get_version.py
6 2 0
def get_sha()
in setup.py
5 2 0
5 2 1
void ShutdownClient()
in awsio/csrc/io/s3/s3_io.cpp
7 2 1
void ShutdownTransferManager()
in awsio/csrc/io/s3/s3_io.cpp
6 2 1
void ShutdownExecutor()
in awsio/csrc/io/s3/s3_io.cpp
5 2 1
size_t read()
in awsio/csrc/io/s3/s3_io.cpp
7 2 3