def _save_user_contributions(user_contributions):
 user_contributions.validate()
 user_models.UserContributionsModel(id=user_contributions.user_id, created_exploration_ids=user_contributions.created_exploration_ids, edited_exploration_ids=user_contributions.edited_exploration_ids).put()

def _save_user_contributions ( user_contributions ) : user_contributions . validate ( ) user_models . UserContributionsModel ( id = user_contributions . user_id , created_exploration_ids = user_contributions . created_exploration_ids , edited_exploration_ids = user_contributions . edited_exploration_ids ) . put ( )
commits a user contributions object to the datastore .