<commit_before>module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class NmiGateway < AuthorizeNetGateway
      self.test_url = 'https://secure.networkmerchants.com/gateway/transact.dll'
      self.live_url = 'https://secure.networkmerchants.com/gateway/transact.dll'
      self.homepage_url = 'http://nmi.com/'
      self.display_name = 'NMI'
      self.supported_countries = ['US']
      self.supported_cardtypes = [:visa, :master, :american_express, :discover]

      private
      def add_creditcard(post, creditcard, options={})
        super<commit_msg>Port SSL fix from Braintree<commit_after>module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class NmiGateway < AuthorizeNetGateway
      self.test_url = 'https://secure.networkmerchants.com/gateway/transact.dll'
      self.live_url = 'https://secure.networkmerchants.com/gateway/transact.dll'
      self.homepage_url = 'http://nmi.com/'
      self.display_name = 'NMI'
      self.supported_countries = ['US']
      self.supported_cardtypes = [:visa, :master, :american_express, :discover]

      class CrippledSslConnection < ActiveMerchant::Connection
        def configure_ssl(http)
          super(http)
          http.ssl_version = :SSLv3
        end
      end

      def new_connection(endpoint)
        CrippledSslConnection.new(endpoint)
      end

      private
      def add_creditcard(post, creditcard, options={})
        super
{'fraction_non_alphanumeric': 0.11087570621468927, 'fraction_numerical': 0.0007062146892655367, 'mean_word_length': 3.1799410029498527, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '922718', 'n_tokens_mistral': 456, 'n_tokens_neox': 451, 'n_words': 77}