microsoft / tes-azure
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 196 units with 1,740 lines of code in units (54.5% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (215 lines of code)
    • 19 medium size units (564 lines of code)
    • 27 small units (400 lines of code)
    • 147 very small units (561 lines of code)
0% | 12% | 32% | 22% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 12% | 32% | 22% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
api-server/tesazure/backends0% | 33% | 29% | 12% | 24%
container-filetransfer0% | 0% | 54% | 21% | 23%
api-server/tesazure/tesapi0% | 0% | 68% | 31% | 0%
api-server/tesazure0% | 0% | 11% | 30% | 58%
api-server/tesazure/auth0% | 0% | 53% | 35% | 11%
api-server/tesazure/provisionerapi0% | 0% | 79% | 0% | 20%
api-server/migrations0% | 0% | 65% | 0% | 34%
api-server/tesazure/user0% | 0% | 0% | 62% | 37%
api-server/migrations/versions0% | 0% | 0% | 65% | 34%
api-server0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def createJob()
in api-server/tesazure/backends/batch/__init__.py
96 24 2
def get_task()
in api-server/tesazure/backends/batch/__init__.py
66 32 2
def _initializePoolKeywordArgs()
in api-server/tesazure/backends/batch/__init__.py
53 9 3
def upload_azure_blob()
in container-filetransfer/cloud-transfer.py
50 16 2
def mangle_task_for_submitter()
in api-server/tesazure/backends/common/__init__.py
47 16 1
def _worker_provision_start()
in api-server/tesazure/backends/batch/__init__.py
43 7 1
def download()
in container-filetransfer/cloud-transfer.py
42 11 3
def provision_check()
in api-server/tesazure/backends/batch/__init__.py
36 10 2
def determine_azure_vm_for_task()
in api-server/tesazure/backends/common/__init__.py
31 7 4
def detect_tags_for_submitter()
in api-server/tesazure/backends/common/__init__.py
29 15 1
def get()
in api-server/tesazure/tesapi/api.py
28 13 2
def download_azure_blob()
in container-filetransfer/cloud-transfer.py
28 6 2
def upload()
in container-filetransfer/cloud-transfer.py
28 6 3
def populate_db()
in api-server/tesazure/commands.py
25 3 1
def create_app()
in api-server/tesazure/__init__.py
23 2 1
def post()
in api-server/tesazure/provisionerapi/api.py
23 6 1
def download_http()
in container-filetransfer/cloud-transfer.py
23 5 2
def register()
in api-server/tesazure/auth/views.py
22 2 0
def post()
in api-server/tesazure/tesapi/api.py
22 3 1
def post()
in api-server/tesazure/tesapi/api.py
22 11 2