<commit_before>require 'rubygems'
  require 'yaml'
  require 'authorizenet'

  include AuthorizeNet::API

  config = YAML.load_file(File.dirname(__FILE__) + "/../credentials.yml")

  transaction = Transaction.new(config['api_login_id'], config['api_transaction_key'], :gateway => :sandbox)

  
  request = GetCustomerProfileRequest.new
  request.customerProfileId = '37115969'

  response = transaction.get_customer_profile(request)


  if response.messages.resultCode == MessageTypeEnum::Ok
    puts "Successfully retrieved a customer with profile id is #{request.customerProfileId} and whose customer id is #{response.profile.merchantCustomerId}"
  else
    puts response.messages.messages[0].text
    raise "Failed to get customer profile information with id #{request.customerProfileId}"
  end<commit_msg>+ Display payment profile and shipping profile id in get-customer-profile<commit_after>require 'rubygems'
  require 'yaml'
  require 'authorizenet'

  include AuthorizeNet::API

  config = YAML.load_file(File.dirname(__FILE__) + "/../credentials.yml")

  transaction = Transaction.new(config['api_login_id'], config['api_transaction_key'], :gateway => :sandbox)

  
  request = GetCustomerProfileRequest.new
  request.customerProfileId = '36152115'

  response = transaction.get_customer_profile(request)

  if response.messages.resultCode == MessageTypeEnum::Ok
    puts "Successfully retrieved a customer with profile id is #{request.customerProfileId} and whose customer id is #{response.profile.merchantCustomerId}"
    response.profile.paymentProfiles.each do |paymentProfile|
      puts "Payment Profile ID #{paymentProfile.customerPaymentProfileId}"     
    end
    response.profile.shipToList.each do |ship|
      puts "Shipping Details:"
      puts "First Name #{ship.firstName}"
      puts "Last Name #{ship.lastName}"
      puts "Address #{ship.address}"
      puts "Customer Address ID #{ship.customerAddressId}"
    end
  else
    puts response.messages.messages[0].text
    raise "Failed to get customer profile information with id #{request.customerProfileId}"
  end
{'fraction_non_alphanumeric': 0.10043041606886657, 'fraction_numerical': 0.00860832137733142, 'mean_word_length': 4.763085399449036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5886803', 'n_tokens_mistral': 593, 'n_tokens_neox': 572, 'n_words': 150}