Uber Poet
Conditional Complexity

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 114 units with 930 lines of code in units (83.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 7 simple units (105 lines of code)
    • 107 very simple units (825 lines of code)
0% | 0% | 0% | 11% | 88%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
py0% | 0% | 0% | 11% | 88%
Legend:
51+
26-50
11-25
6-10
1-5
Conditional Complexity per Logical Component
primary logical decomposition
uberpoet0% | 0% | 0% | 11% | 88%
Legend:
51+
26-50
11-25
6-10
1-5
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
def gen_graph()
in uberpoet/commandlineutil.py
20 8 2
def extract_edges()
in uberpoet/dotreader.py
14 7 2
def gen_layered_graph()
in uberpoet/moduletree.py
15 7 3
def run_multisuite()
in uberpoet/multisuite.py
16 7 1
def apply_cpu_to_traces()
in uberpoet/commandlineutil.py
12 6 3
def gen_layered_big_small_graph()
in uberpoet/moduletree.py
12 6 2
def gen_app()
in uberpoet/projectgen.py
16 6 4
def __init__()
in uberpoet/dotreader.py
4 5 2
def incoming_edge_map_from_dep_map()
in uberpoet/dotreader.py
9 5 1
def find_roots_in_dep_map()
in uberpoet/dotreader.py
3 5 2
def biggest_root_name()
in uberpoet/dotreader.py
14 5 2
def mod_graph_from_dep_map()
in uberpoet/dotreader.py
16 5 2
def __init__()
in uberpoet/moduletree.py
9 5 4
def make_context()
in uberpoet/multisuite.py
28 5 4
def verify_dependencies()
in uberpoet/multisuite.py
13 5 1
def multisuite_cleanup()
in uberpoet/multisuite.py
11 5 1
def gen_lib_module()
in uberpoet/projectgen.py
19 5 3
def print_nodes()
in uberpoet/genproj.py
4 4 1
def bool_xor()
in uberpoet/util.py
2 4 2
def read_dot_file()
in uberpoet/dotreader.py
19 4 4
def identical_names()
in uberpoet/dotreader.py
8 4 2
def get_xcode_dirs()
in uberpoet/statemanagement.py
3 4 1
def choose_latest_major_versions()
in uberpoet/statemanagement.py
12 4 1
def __gt__()
in uberpoet/statemanagement.py
8 4 2
def find_timestamp_range()
in uberpoet/cpulogger.py
10 4 1
def gen_flat_big_small_graph()
in uberpoet/moduletree.py
7 4 2
def calculate_loc()
in uberpoet/projectgen.py
10 4 1
def merge_lists()
in uberpoet/util.py
2 3 1
def check_dependent_commands()
in uberpoet/util.py
2 3 1
def clean_edge_names()
in uberpoet/dotreader.py
2 3 2
def anonymize_edge_names()
in uberpoet/dotreader.py
8 3 2
def count_loc()
in uberpoet/commandlineutil.py
13 3 1
def save_buckconfig_local()
in uberpoet/statemanagement.py
9 3 1
def discover_xcode_versions()
in uberpoet/statemanagement.py
12 3 1
def __eq__()
in uberpoet/statemanagement.py
6 3 2
def apply_log_to_trace()
in uberpoet/cpulogger.py
4 3 2
def gen_file()
in uberpoet/filegen.py
8 3 4
def build_app_type()
in uberpoet/multisuite.py
45 3 3
def multisuite_setup()
in uberpoet/multisuite.py
23 3 1
def gen_app_buck()
in uberpoet/projectgen.py
4 3 3
def main()
in uberpoet/genproj.py
19 2 2
def first_in_dict()
in uberpoet/util.py
5 2 1
def makedir()
in uberpoet/util.py
3 2 1
def sudo_enabled()
in uberpoet/util.py
6 2 0
def pad_list()
in uberpoet/util.py
4 2 3
def extract_buck_target()
in uberpoet/dotreader.py
5 2 1
def make_dep_map_from_edges()
in uberpoet/dotreader.py
6 2 1
def reachability_set()
in uberpoet/dotreader.py
8 2 2
def validate_app_gen_options()
in uberpoet/commandlineutil.py
4 2 1
def del_old_output_dir()
in uberpoet/commandlineutil.py
4 2 1