notation + cleaning for the files

This commit is contained in:
mjgaughan 2023-11-06 16:39:07 -06:00
parent d794f1b50d
commit 28e34de14b
2 changed files with 13 additions and 7 deletions

13
main.py
View File

@ -8,6 +8,19 @@ import perceval_tasks as pt
import github_api_req as gha import github_api_req as gha
import gh_gsql_req as ghs import gh_gsql_req as ghs
# In total, the data will look like:
# - repository VCS url
# - perceval object
# list of all commits to the project
# count of contributors and collaborators to the project
# age of the project
# - github api object
# object of milestones from the project
# count of milestones from the project
# - github gsql object
# - list of discussion comments from repo
# list left blank if none
def main(): def main():
# we should discuss whether we're using the 93 day window that seems to be widely used or if we want a longer window # we should discuss whether we're using the 93 day window that seems to be widely used or if we want a longer window
early_cutoff = dt.datetime(2013,11, 6) early_cutoff = dt.datetime(2013,11, 6)

View File

@ -33,13 +33,6 @@ def get_perceval_log(vcs_path, begin_date):
except: except:
print("error, cannot fetch repo data?") print("error, cannot fetch repo data?")
return {} return {}
'''
#gitpath=repo_dir
repo = Git(uri=vcs_path[0], gitpath=repo_dir)
# this is a temporary date_from, will need to be more inclusive in the future
fetched_commits = repo.fetch(from_date=begin_date)
return list(fetched_commits)
'''
#this function is just to evaluate the repository age, as defined by Tamburri and used by van Meijel #this function is just to evaluate the repository age, as defined by Tamburri and used by van Meijel
def get_repo_age(all_commits): def get_repo_age(all_commits):