<commit_before>require_dependency 'oneboxer/base_onebox'

module Oneboxer
  class VideoOnebox < BaseOnebox
    
    matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/

    def onebox
      "<video width='100%' height='100%' controls><source src='#{@url}'></video>"
    end

  end
end<commit_msg>HTML5 video fallsback to link<commit_after>require_dependency 'oneboxer/base_onebox'

module Oneboxer
  class VideoOnebox < BaseOnebox
    
    matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/

    def onebox
      "<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>"
    end

  end
end
{'fraction_non_alphanumeric': 0.18536585365853658, 'fraction_numerical': 0.024390243902439025, 'mean_word_length': 3.8503937007874014, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '2824520', 'n_tokens_mistral': 235, 'n_tokens_neox': 226, 'n_words': 42}