The create a python script that can calculate the ratio of original vs. current code for a local repository. **Tasks** - [x] Initialize a python script that takes a local repo path as input - [x] Use `git blame` or `git log` to extract the "Birth year" of every line in a file - [x] Aggregate the data into a JSON structure should be something `{"year": 2024, "lines_from_2020": 450, "total_lines": 1000}` - [x] Store the output in a `data.json` file.
The create a python script that can calculate the ratio of original vs. current code for a local repository.
Tasks
git blameorgit logto extract the "Birth year" of every line in a file{"year": 2024, "lines_from_2020": 450, "total_lines": 1000}data.jsonfile.