Uber Poet
Unit Size

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 114 units with 930 lines of code in units (83.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (201 lines of code)
    • 22 small units (315 lines of code)
    • 86 very small units (414 lines of code)
0% | 0% | 21% | 33% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
py0% | 0% | 21% | 33% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Logical Component
primary logical decomposition
uberpoet0% | 0% | 21% | 33% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
def build_app_type()
in uberpoet/multisuite.py
45 3 3
def parse_config()
in uberpoet/multisuite.py
41 1 1
def add_app_gen_options()
in uberpoet/commandlineutil.py
36 1 1
def make_args()
in uberpoet/genproj.py
28 1 1
def make_context()
in uberpoet/multisuite.py
28 5 4
def multisuite_setup()
in uberpoet/multisuite.py
23 3 1
def gen_graph()
in uberpoet/commandlineutil.py
20 8 2
def main()
in uberpoet/genproj.py
19 2 2
def read_dot_file()
in uberpoet/dotreader.py
19 4 4
def gen_lib_module()
in uberpoet/projectgen.py
19 5 3
def mod_graph_from_dep_map()
in uberpoet/dotreader.py
16 5 2
def run_multisuite()
in uberpoet/multisuite.py
16 7 1
def gen_app()
in uberpoet/projectgen.py
16 6 4
def __init__()
in uberpoet/commandlineutil.py
15 1 8
def gen_layered_graph()
in uberpoet/moduletree.py
15 7 3
def extract_edges()
in uberpoet/dotreader.py
14 7 2
def biggest_root_name()
in uberpoet/dotreader.py
14 5 2
def count_loc()
in uberpoet/commandlineutil.py
13 3 1
def config_to_vars()
in uberpoet/multisuite.py
13 1 2
def verify_dependencies()
in uberpoet/multisuite.py
13 5 1
def apply_cpu_to_traces()
in uberpoet/commandlineutil.py
12 6 3
def discover_xcode_versions()
in uberpoet/statemanagement.py
12 3 1
def choose_latest_major_versions()
in uberpoet/statemanagement.py
12 4 1
def chrome_trace()
in uberpoet/cpulogger.py
12 1 1
def gen_layered_big_small_graph()
in uberpoet/moduletree.py
12 6 2
def clean_caches()
in uberpoet/statemanagement.py
11 2 1
def main()
in uberpoet/multisuite.py
11 2 2
def multisuite_cleanup()
in uberpoet/multisuite.py
11 5 1
def make_custom_buckconfig_local()
in uberpoet/commandlineutil.py
10 1 1
def parse_line()
in uberpoet/cpulogger.py
10 1 2
def find_timestamp_range()
in uberpoet/cpulogger.py
10 4 1
def calculate_loc()
in uberpoet/projectgen.py
10 4 1
def incoming_edge_map_from_dep_map()
in uberpoet/dotreader.py
9 5 1
def pull_from_args()
in uberpoet/commandlineutil.py
9 1 2
def save_buckconfig_local()
in uberpoet/statemanagement.py
9 3 1
def __init__()
in uberpoet/moduletree.py
9 5 4
def gen_func()
in uberpoet/filegen.py
9 2 2
def gen_class()
in uberpoet/filegen.py
9 2 3
def __init__()
in uberpoet/projectgen.py
9 1 4
def anonymize_edge_names()
in uberpoet/dotreader.py
8 3 2
def reachability_set()
in uberpoet/dotreader.py
8 2 2
def identical_names()
in uberpoet/dotreader.py
8 4 2
def _get_global_module_cache_dir()
in uberpoet/statemanagement.py
8 2 0
def __gt__()
in uberpoet/statemanagement.py
8 4 2
def kill()
in uberpoet/cpulogger.py
8 2 1
def enum_list()
in uberpoet/moduletree.py
8 1 0
def gen_file()
in uberpoet/filegen.py
8 3 4
def dump_system_info()
in uberpoet/multisuite.py
8 1 1
def restore_buckconfig_local()
in uberpoet/statemanagement.py
7 2 1
def __init__()
in uberpoet/cpulogger.py
7 2 2