#NEWLINE# def __init__( self , person , name , * repos ) : #NEWLINE# #INDENT# if ( name is None ) : #NEWLINE# #INDENT# if ( len ( repos ) > 1 ) : #NEWLINE# #INDENT# msg = 'project name not specified but more than one repository' #NEWLINE# raise ValueError ( msg ) #NEWLINE# #UNINDENT# name = pathlib . Path ( parse . urlparse ( repos [ 0 ] . remote ) . path ) . name #NEWLINE# #UNINDENT# self . name = name #NEWLINE# self . repositories = repos #NEWLINE# commits = [ ] #NEWLINE# self . claimed_commits = False #NEWLINE# for repo in self . repositories : #NEWLINE# #INDENT# commits . extend ( repo . commits ) #NEWLINE# if person . claimed_commits : #NEWLINE# #INDENT# self . claimed_commits = True #NEWLINE# #UNINDENT# #UNINDENT# self . analysis = types . SimpleNamespace ( all = None , past_year = None ) #NEWLINE# self . _analyze ( person , commits )