<commit_before>module FoxySync::Xml
  #
  # Encapsulates FoxyCart's transaction XML datafeed
  class Transaction < Document
    #
    # Returns an +Array+ of the +TransactionDetail+s in this +Transaction+
    def details
      unless @details
        @details = []

        node.xpath('//transaction_details').each do |detail|
          @details << TransactionDetail.new(detail)<commit_msg>path is //transaction_detail not 'details'<commit_after>module FoxySync::Xml
  #
  # Encapsulates FoxyCart's transaction XML datafeed
  class Transaction < Document
    #
    # Returns an +Array+ of the +TransactionDetail+s in this +Transaction+
    def details
      unless @details
        @details = []

        node.xpath('//transaction_detail').each do |detail|
          @details << TransactionDetail.new(detail)
{'fraction_non_alphanumeric': 0.09900990099009901, 'fraction_numerical': 0.0, 'mean_word_length': 3.235602094240838, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7535624', 'n_tokens_mistral': 222, 'n_tokens_neox': 216, 'n_words': 61}