<commit_before>config = APP_CONFIG.fetch("oauth", [])
if !config.empty?
  Rails.application.config.middleware.use OmniAuth::Builder do
    if Rails.env.development?    then
      OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
    end

    provider :google_oauth2, config["providers"]["google_oauth2"]["key"], config["providers"]["google_oauth2"]["secret"], {client_options: {ssl: {ca_path: "/usr/lib/ssl/certs"}}, setup: true}
    provider :facebook, config["providers"]["facebook"]["key"], config["providers"]["facebook"]["secret"], {:scope => 'email'}
  end
end<commit_msg>Add parameter to send through an email<commit_after>config = APP_CONFIG.fetch("oauth", [])
if !config.empty?
  Rails.application.config.middleware.use OmniAuth::Builder do
    if Rails.env.development?    then
      OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
    end

    provider :google_oauth2, config["providers"]["google_oauth2"]["key"], config["providers"]["google_oauth2"]["secret"], {client_options: {ssl: {ca_path: "/usr/lib/ssl/certs"}}, setup: true}
    provider :facebook, config["providers"]["facebook"]["key"], config["providers"]["facebook"]["secret"], { scope: 'email', info_fields: 'email'}
  end
end
{'fraction_non_alphanumeric': 0.18858560794044665, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 6.515527950310559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4915112', 'n_tokens_mistral': 387, 'n_tokens_neox': 409, 'n_words': 69}