

@staticmethod
def reduce(key, stringified_values):
    values = [ast.literal_eval(v) for v in stringified_values]
    exponent = (2.0 / 3)
    user_impact_score = int(round((sum(values) ** exponent)))
    user_models.UserStatsModel(id=key, impact_score=user_impact_score).put()

dataset/ETHPy150Open oppia/oppia/core/domain/user_jobs_continuous.py UserImpactMRJobManager.reduce/original