def avg_css_stats(stats_list):
  css_result = {}
  css_result['_totalTime'] = sum(stats['_totalTime'] for stats in stats_list) / len(stats_list)

  css_result['_mostTimeConsumingRule'] = max((stats['_mostTimeConsumingRule'] for stats in stats_list),
                                             key=lambda rule: rule['time'])
  css_result['_mostMissesRule'] = max((stats['_mostMissesRule'] for stats in stats_list),
                                      key=lambda rule: rule['hitCount'] - rule['matchCount'])
  return css_result
Returns averaged CSS stats from a list of the CSS stats of multiple runs. We return the average CSS totalTime and the
dataset/ETHPy150Open linkedin/mobster/src/linkedin/mobster/har/merge.py/avg_css_stats