#NEWLINE# def fetch( self ) : #NEWLINE# #INDENT# '\n        Request the specified GitHub API URL with 100 items per page. Loop over\n        the pages until no page left. Return total item count.\n        ' #NEWLINE# count = 0 #NEWLINE# page = 1 #NEWLINE# while True : #NEWLINE# #INDENT# r = requests . get ( self . api_url , params = { #NEWLINE# #INDENT# 'page' : page , #NEWLINE# 'per_page' : 100 , #NEWLINE# #UNINDENT# } ) #NEWLINE# c = len ( r . json ) #NEWLINE# count += c #NEWLINE# page += 1 #NEWLINE# if ( c < 100 ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# return count