def calculate_multiplier(max_commits):
 m = (max_commits / 4.0)
 if (m == 0):
  return 1
 m = math.ceil(m)
 m = int(m)
 return m

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