/openEulerAnalysis

Comparative analysis of openEuler and Linux kernel

Primary LanguagePython

openEulerAnalysis

Exploratory analysis of openEuler Community


  1. Retrieve repository list under openEuler and src-openEuler organizations.
python getOrgRepos.py openeuler
python getOrgRepos.py src-openeuler
  1. Clone all retrieved repositories to local /data/repos folder.
./gitClone.sh
  1. Get commit logs and deltas
./commitLog.sh
  1. Save commit content and file change history to MongoDB
python get_commit_history.py openeuler
python get_commit_history.py linux
  1. Count openeuler's LOC at 2010-12-31, 2019-9-30, 2019-12-31, and 2021-10-31
python retrieve_snapshot.py openeuler 2010 12 31
./cal_loc.sh openeuler 2010 12 31
python retrieve_snapshot.py openeuler 2019 9 30
./cal_loc.sh openeuler 2019 9 30
python retrieve_snapshot.py openeuler 2019 12 31
./cal_loc.sh openeuler 2019 12 31
python retrieve_snapshot.py openeuler 2021 10 31
./cal_loc.sh openeuler 2021 10 31
  1. Count Linux's LOC at the first commit of git log, 2019-9-30, 2021-10-31
first_commit=`tail -1 linux.delta | cut -d\; -f 2`
first_at=`tail -1 linux.delta | cut -d\; -f 10`
dt=`date -d @$first_at +"%Y-%m-%d %H:%M:%S"`
echo "linux,$first_commit,$dt" > data/linux-2005-4-17.csv
./cal_loc.sh linux 2005 4 17
python retrieve_snapshot.py linux 2019 9 30
./cal_loc.sh linux 2019 9 30
python retrieve_snapshot.py linux 2021 10 31
./cal_loc.sh linux 2021 10 31