#NEWLINE# def multiplier( max_commits ) : #NEWLINE# #INDENT# 'calculates a multiplier to scale github colors to commit history' #NEWLINE# m = ( max_commits / 4.0 ) #NEWLINE# if ( m == 0 ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# m = math . ceil ( max_commits ) #NEWLINE# m = int ( m ) #NEWLINE# return m