File Complexity Overall
  • There are 24 files with units, with 6,197 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 511 lines of code)
    • 6 medium complex files (McCabe index sum 51-125; 2,547 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 1,487 lines of code)
    • 11 simple files (McCabe index sum 1-25; 1,652 lines of code)
  • 6 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 8% | 41% | 23% | 26%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
py0% | 8% | 41% | 23% | 26%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
nextflow-development0% | 19% | 50% | 19% | 10%
instrument-data-to-allotrope0% | 0% | 75% | 9% | 14%
scvi-tools0% | 0% | 0% | 57% | 42%
clinical-trial-protocol-skill0% | 0% | 0% | 0% | 100%
single-cell-rna-qc0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 24)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
sra_geo_fetch.py
in nextflow-development/scripts
511 11 130 25 45
ncbi_utils.py
in nextflow-development/scripts/utils
509 16 122 24 17
validate_asm.py
in instrument-data-to-allotrope/scripts
815 24 110 13 19
generate_samplesheet.py
in nextflow-development/scripts
288 10 100 35 18
check_environment.py
in nextflow-development/scripts
348 9 62 18 11
convert_to_asm.py
in instrument-data-to-allotrope/scripts
386 11 54 14 21
detect_data_type.py
in nextflow-development/scripts
201 6 52 26 30
sample_inference.py
in nextflow-development/scripts/utils
161 7 45 28 13
manage_genomes.py
in nextflow-development/scripts
368 9 45 12 15
flatten_asm.py
in instrument-data-to-allotrope/scripts
153 7 45 29 12
train_model.py
in scvi-tools/scripts
233 7 37 16 19
model_utils.py
in scvi-tools/scripts
319 10 33 10 19
validate_adata.py
in scvi-tools/scripts
253 7 29 11 10
qc_core.py
in single-cell-rna-qc/scripts
80 6 24 30 6
export_parser.py
in instrument-data-to-allotrope/scripts
234 6 24 10 7
cluster_embed.py
in scvi-tools/scripts
111 3 22 20 18
file_discovery.py
in nextflow-development/scripts/utils
101 5 17 17 9
validators.py
in nextflow-development/scripts/utils
171 8 16 9 7
differential_expression.py
in scvi-tools/scripts
129 3 15 12 8
sample_size_calculator.py
in clinical-trial-protocol-skill/scripts
326 3 12 4 10
integrate_datasets.py
in scvi-tools/scripts
135 3 11 8 6
transfer_labels.py
in scvi-tools/scripts
125 3 10 8 6
qc_plotting.py
in single-cell-rna-qc/scripts
153 3 7 5 5
prepare_data.py
in scvi-tools/scripts
87 2 3 3 2
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...