Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/brevex/code-complexity-data-analisis
- Owner: Brevex
- Created: 2023-12-12T02:42:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-28T18:53:21.000Z (10 months ago)
- Last Synced: 2024-02-28T19:57:18.057Z (10 months ago)
- Topics: code-analysis, data-analysis, data-science, python
- Language: Jupyter Notebook
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 -