<commit_before># The module has a class which holds merchant's API credentials and
# PayPal endpoint information.

module PayPalSDKProfiles
  class Profile
    cattr_accessor :endpoints
    cattr_accessor :client_info
    cattr_accessor :proxy_info
    cattr_accessor :client_details

    def credentials
      @credentials ||= {
        "USER"     => config["security_userid"],
        "PWD"      => config["security_password"],
        "SIGNATURE"=> config["security_signature"],
        "VERSION"  => "63.0"
      }
    end

    def endpoints
      # endpoint of PayPal server against which call will be made.
      @endpoints ||= {
        "SERVER"  => config["nvp_server"],
        "PORT"    => config["nvp_port"],
        "SERVICE" => config["nvp_service"],
      }
    end

    #Client details to be send in request
    @@client_details ={"ipAddress"=>"127.0.0.1", "deviceId"=>"mydevice", "applicationId"=>"APP-80W284485P519543T"}


    # Proxy information of the client environment.
    @@proxy_info = {
      "USE_PROXY" => false,
      "ADDRESS" => nil,
      "PORT" => "443",
      "USER" => nil,
      "PASSWORD" => <PASSWORD>
    }

    # Information needed for tracking purposes.
    @@client_info = {
      "VERSION" => "64.0",
      "SOURCE" => "PayPalRubySDK kate V2.0.0"
    }

    def initialize
      config
    end

    def config
      unless @config
        yaml = YAML.load_file("#{::Rails.root.to_s}/config/paypal.yml")
        @config = yaml[RAILS_ENV]
      end
      @config
    end

    def m_use_proxy
      @config["USE_PROXY"]
    end
  end

end



<commit_msg>use ::Rails rather than RAILS_ENV due to depreciation warning<commit_after># The module has a class which holds merchant's API credentials and
# PayPal endpoint information.

module PayPalSDKProfiles
  class Profile
    cattr_accessor :endpoints
    cattr_accessor :client_info
    cattr_accessor :proxy_info
    cattr_accessor :client_details

    def credentials
      @credentials ||= {
        "USER"     => config["security_userid"],
        "PWD"      => config["<PASSWORD>"],
        "SIGNATURE"=> config["security_signature"],
        "VERSION"  => "63.0"
      }
    end

    def endpoints
      # endpoint of PayPal server against which call will be made.
      @endpoints ||= {
        "SERVER"  => config["nvp_server"],
        "PORT"    => config["nvp_port"],
        "SERVICE" => config["nvp_service"],
      }
    end

    #Client details to be send in request
    @@client_details ={"ipAddress"=>"127.0.0.1", "deviceId"=>"mydevice", "applicationId"=>"APP-80W284485P519543T"}


    # Proxy information of the client environment.
    @@proxy_info = {
      "USE_PROXY" => false,
      "ADDRESS" => nil,
      "PORT" => "443",
      "USER" => nil,
      "PASSWORD" => <PASSWORD>
    }

    # Information needed for tracking purposes.
    @@client_info = {
      "VERSION" => "64.0",
      "SOURCE" => "PayPalRubySDK kate V2.0.0"
    }

    def initialize
      config
    end

    def config
      unless @config
        yaml = YAML.load_file("#{::Rails.root.to_s}/config/paypal.yml")
        @config = yaml[::Rails.env]
      end
      @config
    end

    def m_use_proxy
      @config["USE_PROXY"]
    end
  end

end




{'fraction_non_alphanumeric': 0.12154531946508172, 'fraction_numerical': 0.01901931649331352, 'mean_word_length': 2.139925373134328, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1722826', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1037, 'n_words': 248}