<commit_before>require 'omniauth-saml'

module OmniAuth
  module Strategies
    class SAMLFrog < SAML

      option :name, "saml_frog"

      info do
        inf = {}
        @attributes.each do |k,v|
          inf[k.tr(' ', '_').downcase.to_sym] = v[0]
        end
        inf[:email] = inf[:email_address]
        inf[:name]  = inf[:display_name] ||
                      "#{inf[:first_name]} #{inf[:last_name]}"
        inf
      end
    end
  end
end

OmniAuth.config.add_camelization 'saml_frog', 'SAMLFrog'<commit_msg>frog seems to fill forename and surname instead of first_name last_name<commit_after>require 'omniauth-saml'

module OmniAuth
  module Strategies
    class SAMLFrog < SAML

      option :name, "saml_frog"

      info do
        inf = {}
        @attributes.each do |k,v|
          inf[k.tr(' ', '_').downcase.to_sym] = v[0]
        end
        inf[:first_name] ||= inf[:forename]
        inf[:last_name] ||= inf[:surname]
        inf[:email] ||= inf[:email_address]
        inf[:name]  ||= inf[:displayname] ||
                        "#{inf[:first_name]} #{inf[:last_name]}"
        inf
      end
    end
  end
end

OmniAuth.config.add_camelization 'saml_frog', 'SAMLFrog'
{'fraction_non_alphanumeric': 0.13700918964076858, 'fraction_numerical': 0.001670843776106934, 'mean_word_length': 2.282191780821918, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6327694', 'n_tokens_mistral': 430, 'n_tokens_neox': 411, 'n_words': 85}