<commit_before>module Onebox
  module Engine
    class WikipediaOnebox
      include Engine

      matches do
        /^https?:\/\/.*wikipedia\.(com|org)\/.*$/
      end

      private

      def extracted_data
        {
          url: @url,
          name: @body.css("html body h1").inner_text,
          image: @body.css(".infobox .image img").first["src"],
          description: @body.css("html body p").inner_text
        }
      end
    end
  end
end<commit_msg>add verbal expression block for wikipedia<commit_after>module Onebox
  module Engine
    class WikipediaOnebox
      include Engine

      matches do
        # /^https?:\/\/.*wikipedia\.(com|org)\/.*$/
        find "wikipedia.com"
      end

      private

      def extracted_data
        {
          url: @url,
          name: @body.css("html body h1").inner_text,
          image: @body.css(".infobox .image img").first["src"],
          description: @body.css("html body p").inner_text
        }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12663316582914572, 'fraction_numerical': 0.0020100502512562816, 'mean_word_length': 1.797752808988764, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2872373', 'n_tokens_mistral': 304, 'n_tokens_neox': 291, 'n_words': 72}