This dataset contains code changes in each commit of most starred python project, stored on GitHub.
Get list of most starred GitHub repos via API
With git python package clone all the repos from the list to local machine and write code defference for each commit of every repo to the dataset.
Clean dataset to remove to large commits, commits with not python code changes, commits with non-ASCII… See the full description on the dataset page:
https://huggingface.co/datasets/narySt/github_commits.