Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brevex/code-complexity-data-analisis

Data collection that shows different complexity scores in an algorithmic dataframe.
https://github.com/brevex/code-complexity-data-analisis

code-analysis data-analysis data-science python

Last synced: 22 days ago
JSON representation

Data collection that shows different complexity scores in an algorithmic dataframe.

Awesome Lists containing this project

README

        

Code Complexity Data Analisis


🔍 About the project


This data analysis aims to catalog and filter different algorithms into a complexity metric. An initial dataframe with the scores
was filtered to better understand how efficient each algorithm in the database can be. The final dataframe with the filtered data
classifies the algorithms into 3 labels: Risk by Cyclomatic Complexity, Fan-in and Fan-out Complexity and Maintainability Score.


🔮 Technologies Used






📈 Categorization Criteria




| Type of Complexity | Equation |
|:-----------------------------:|:-----------------------------------------------------------:|
| Fan-in and Fan-out | $C = wmc \cdot (Fin \cdot Fout)^2$ |
| Maintainability Score | $MS = loopQty + comparisonsQty + numbersQty + variablesQty$ |
| Risk by Cyclomatic Complexity | $wmc$ |

| Type of Complexity | Appraisal Criteria |
|:-----------------------------:|:-----------------------------------------------------------:|
| Fan-in and Fan-out | $0=(<= 100), 1=(101-1000), 2=(> 1000)$ |
| Maintainability Score | $0=(<= 65), 1=(66-85), 2=(> 85)$ |
| Risk by Cyclomatic Complexity | $0=(<= 10), 1=(11-20), 2=(21-50), 3=(> 50)$ |

| Evaluation value | Risk by Cyclomatic Complexity | Fan-in and Fan-out Complexity | Maintainability Score |
|:------------------:|:-----------------------------:|:-----------------------------:|:---------------------:|
| 0 | Low | Good | Good |
| 1 | Moderate | Moderate | Moderate |
| 2 | High | High | Bad |
| 3 | Very High | (N/A) | (N/A) |


📊 Analysis Result





- By Breno -