def get_user_contributions(user_id, strict=False):
 model = user_models.UserContributionsModel.get(user_id, strict=strict)
 if (model is not None):
  result = UserContributions(model.id, model.created_exploration_ids, model.edited_exploration_ids)
 else:
  result = None
 return result

def get_user_contributions ( user_id , strict = False ) : model = user_models . UserContributionsModel . get ( user_id , strict = strict ) if ( model is not None ) : result = UserContributions ( model . id , model . created_exploration_ids , model . edited_exploration_ids ) else : result = None return result
gets domain object representing the contributions for the given user_id .