Here, i calculate halstead metric for two languages.
- Python
- Java
main.py is for python file and main_for_java.py for java file.To run this project
git clone https://github.com/purbo75/Halstead-Metric-calculation.git
cd Halstead-Metric-calculation
For java file:
python3 main_for_java.py <java File name>
example:
python3 main_for_java.py ft.java
For python file:
python3 main.py <pyhton_file_name>
example:
python3 main.py test.py