<commit_before>module Onebox
  module Engine
    class CollegeHumorOnebox
      include Engine
      include OpenGraph

      matches do
        # /^https?:\/\/www.collegehumor.com\/video\/.*$/
        find "collegehumor.com"
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description,
          video: raw.metadata[:video].first[:_value]
        }
      end
    end
  end
end<commit_msg>add hexpress for collegehumor matcher #76<commit_after>module Onebox
  module Engine
    class CollegeHumorOnebox
      include Engine
      include OpenGraph

      matches do
        # /^https?:\/\/www.collegehumor.com\/video\/.*$/
        http
        domain("collegehumor")
        has(".com").maybe("/video").maybe("/")
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description,
          video: raw.metadata[:video].first[:_value]
        }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1070448307410796, 'fraction_numerical': 0.0018298261665141812, 'mean_word_length': 1.636144578313253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7577028', 'n_tokens_mistral': 326, 'n_tokens_neox': 314, 'n_words': 71}