You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: omniauth_initializer.rb
    path of file: ./repos/gitlabhq/lib/gitlab
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  class OmniauthInitializer
    OAUTH2_TIMEOUT_SECONDS = 10
    
    
    def merge_hash_defaults_and_args(defaults, arguments)
      return arguments.to_hash if defaults.empty?

      revert_merging = Gitlab::Utils.to_boolean(ENV['REVERT_OMNIAUTH_DEFAULT_MERGING'])
      return arguments.to_hash.deep_symbolize_keys.deep_merge(defaults) if revert_merging

      defaults.deep_merge(arguments.deep_symbolize_keys)
    end