notation + cleaning for the files
This commit is contained in:
parent
d794f1b50d
commit
28e34de14b
13
main.py
13
main.py
@ -8,6 +8,19 @@ import perceval_tasks as pt
|
||||
import github_api_req as gha
|
||||
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():
|
||||
# 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)
|
||||
|
@ -33,13 +33,6 @@ def get_perceval_log(vcs_path, begin_date):
|
||||
except:
|
||||
print("error, cannot fetch repo data?")
|
||||
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
|
||||
def get_repo_age(all_commits):
|
||||
|
Loading…
Reference in New Issue
Block a user