File Complexity Overall
  • There are 60 files with units, with 21,067 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,386 lines of code)
    • 5 complex files (McCabe index sum 126-250; 3,865 lines of code)
    • 16 medium complex files (McCabe index sum 51-125; 8,095 lines of code)
    • 16 slightly complex files (McCabe index sum 26-50; 5,153 lines of code)
    • 22 simple files (McCabe index sum 1-25; 2,568 lines of code)
  • 8 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system6% | 18% | 38% | 24% | 12%
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
py6% | 18% | 38% | 24% | 12%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
data_generation32% | 0% | 29% | 22% | 15%
videox_fun0% | 34% | 11% | 37% | 16%
VLM-MASK-REASONER0% | 17% | 78% | 0% | 4%
scripts0% | 0% | 100% | 0% | 0%
inference0% | 0% | 0% | 94% | 6%
config0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
1386 32 283 20 76
877 26 167 19 52
dataset_image_video.py
in videox_fun/data
858 26 166 19 51
edit_quadmask.py
in VLM-MASK-REASONER
540 31 150 28 12
utils.py
in videox_fun/utils
497 17 138 28 24
cogvideox_vae.py
in videox_fun/models
1093 45 126 12 18
stage2_vlm_analysis.py
in VLM-MASK-REASONER
454 12 107 24 34
stage2_vlm_analysis_cf.py
in VLM-MASK-REASONER
450 12 106 24 32
train_warped_noise.py
in scripts/cogvideox_fun
1678 7 102 6 74
point_selector_gui.py
in VLM-MASK-REASONER
393 29 97 25 13
train.py
in scripts/cogvideox_fun
1557 7 95 6 67
blender_utils.py
in data_generation
374 12 90 24 37
lora_utils.py
in videox_fun/utils
401 18 84 21 18
345 13 83 24 27
optical_flow_utils.py
in videox_fun/utils
388 13 68 18 11
kubric_variable_objects.py
in data_generation
477 6 68 14 45
stage3a_generate_grey_masks.py
in VLM-MASK-REASONER
289 11 63 22 21
bucket_sampler.py
in videox_fun/data
302 12 59 20 17
stage1_sam2_segmentation.py
in VLM-MASK-REASONER
276 6 57 21 24
213 8 56 26 21
stage3b_trajectory_gui.py
in VLM-MASK-REASONER
288 15 54 19 9
human_model.py
in data_generation/human_model
210 11 51 24 20
predict_v2v.py
in inference/cogvideox_fun
266 3 47 18 19
pipeline_cogvideox_fun_inpaint.py
in videox_fun/pipeline
856 24 43 5 8
inference_with_pass1_warped_noise.py
in inference/cogvideox_fun
298 4 42 14 17
166 7 39 23 14
blender_helper.py
in data_generation/scripts
130 8 38 29 16
cogvideox_transformer3d.py
in videox_fun/models
570 15 32 6 7
145 6 32 22 14
wan_fun_ui.py
in videox_fun/ui
535 5 31 6 10
cogvideox_fun_ui.py
in videox_fun/ui
557 5 31 6 10
dataset_video.py
in videox_fun/data
219 11 31 14 5
object_texture_mapping.py
in data_generation
316 6 30 9 9
generate_review_frames.py
in data_generation
103 3 30 29 19
cross_modeling.py
in videox_fun/reward/MPS/trainer/models
152 18 29 19 5
pipeline_cogvideox_fun.py
in videox_fun/pipeline
533 19 28 5 7
api.py
in videox_fun/api
180 9 27 15 14
transfer_human_model.py
in data_generation/scripts
127 3 27 21 18
stage4_combine_masks.py
in VLM-MASK-REASONER
139 4 24 17 11
reward_fn.py
in videox_fun/reward
296 11 24 8 6
fp8_optimization.py
in videox_fun/utils
47 4 23 49 9
api_multi_nodes.py
in videox_fun/api
191 4 21 11 16
pipeline_wan_fun.py
in videox_fun/pipeline
387 13 20 5 7
clear_human_scale.py
in data_generation/scripts
110 1 20 18 20
extract_pk_data.py
in data_generation/scripts
107 3 19 18 8
ui.py
in videox_fun/ui
232 14 15 6 2
make_warped_noise.py
in inference/cogvideox_fun
36 1 15 42 15
123 3 15 12 6
58 5 13 22 6
58 5 13 22 6
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...