<commit_before>class OauthProviderPluginPublicController < PublicController

  doorkeeper_for :me

  def me
    user = User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
    render :json => {:id =>user.login, :email => user.email}.to_json
  end
<commit_msg>oauth_provider: use environment to find users<commit_after>class OauthProviderPluginPublicController < PublicController

  doorkeeper_for :me

  def me
    user = environment.users.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
    render :json => {:id =>user.login, :email => user.email}.to_json
  end

{'fraction_non_alphanumeric': 0.08828522920203735, 'fraction_numerical': 0.0, 'mean_word_length': 5.344086021505376, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '986640', 'n_tokens_mistral': 180, 'n_tokens_neox': 173, 'n_words': 41}