<commit_before>class FranceConnectService
  def self.retrieve_user_informations_entreprise code
    client = FranceConnectEntrepriseClient.new code: code

    access_token = client.access_token!(client_auth_method: :secret)
    user_info = access_token.userinfo!
    Hashie::Mash.new user_info.raw_attributes
  end

  def self.retrieve_user_informations_particulier code
    client = FranceConnectParticulierClient.new code: code

    access_token = client.access_token!(client_auth_method: :secret)
    user_info = access_token.userinfo!
    hash = Hashie::Mash.new user_info.raw_attributes

    hash.france_connect_particulier_id = hash.sub
    hash<commit_msg>Delete old code<commit_after>class FranceConnectService
  def self.retrieve_user_informations_particulier code
    client = FranceConnectParticulierClient.new code: code

    access_token = client.access_token!(client_auth_method: :secret)
    user_info = access_token.userinfo!
    hash = Hashie::Mash.new user_info.raw_attributes

    hash.france_connect_particulier_id = hash.sub
    hash
{'fraction_non_alphanumeric': 0.06451612903225806, 'fraction_numerical': 0.0, 'mean_word_length': 5.242603550295858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3000819', 'n_tokens_mistral': 336, 'n_tokens_neox': 320, 'n_words': 56}