<commit_before>module BeGateway
  class Transaction < OpenStruct
    def successful?
      self[:status] == "successful"
    end

    def incomplete?
      self[:status] == "incomplete"
    end

    [:authorization, :payment, :refund, :three_d_secure_verification,
     :max_mind_verification].each do |section|

      define_method(section) do
        return unless self[section]

        sections_values[section] ||= Section.new(self[section])
      end
    end
<commit_msg>add card_bin_verification section<commit_after>module BeGateway
  class Transaction < OpenStruct
    def successful?
      self[:status] == "successful"
    end

    def incomplete?
      self[:status] == "incomplete"
    end

    [:authorization, :payment, :refund, :three_d_secure_verification,
     :max_mind_verification, :card_bin_verification].each do |section|

      define_method(section) do
        return unless self[section]

        sections_values[section] ||= Section.new(self[section])
      end
    end

{'fraction_non_alphanumeric': 0.09839357429718876, 'fraction_numerical': 0.0, 'mean_word_length': 3.3728070175438596, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2108719', 'n_tokens_mistral': 298, 'n_tokens_neox': 289, 'n_words': 65}