<commit_before>require 'embed'
require 'json'
require 'net/http'
require 'uri'
require 'cgi'

module Embed
  module EmbedHelper
    def _youtube_embed(url, width, height)
      video_id = Embed.youtube_video_id(url)
      html = %Q{<iframe id="#{video_id}" type="text/html" width="#{width}" height="#{height}" src="//www.youtube.com/embed/#{video_id}?autoplay=0&rel=0" frameborder="0"></iframe>}
      html.respond_to?(:html_safe) ? html.html_safe : html
    end

    def _vimeo_embed(url, width, height)
      video_id = Embed.vimeo_video_id(url)
      html = %Q{<iframe src="//player.vimeo.com/video/#{video_id}" width="#{width}" height="#{height}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>}
      html.respond_to?(:html_safe) ? html.html_safe : html
    end

    def _soundcloud_embed(url)
      params = {:format => 'json', :url => url}
      _oembed("#{request.protocol}soundcloud.com/oembed", url, params)
    end
<commit_msg>add full screen attributes to iframe<commit_after>require 'embed'
require 'json'
require 'net/http'
require 'uri'
require 'cgi'

module Embed
  module EmbedHelper
    def _youtube_embed(url, width, height)
      video_id = Embed.youtube_video_id(url)
      html = %Q{<iframe id="#{video_id}" type="text/html" width="#{width}" height="#{height}" src="//www.youtube.com/embed/#{video_id}?autoplay=0&rel=0" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true"></iframe>}
      html.respond_to?(:html_safe) ? html.html_safe : html
    end

    def _vimeo_embed(url, width, height)
      video_id = Embed.vimeo_video_id(url)
      html = %Q{<iframe src="//player.vimeo.com/video/#{video_id}" width="#{width}" height="#{height}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>}
      html.respond_to?(:html_safe) ? html.html_safe : html
    end

    def _soundcloud_embed(url)
      params = {:format => 'json', :url => url}
      _oembed("#{request.protocol}soundcloud.com/oembed", url, params)
    end

{'fraction_non_alphanumeric': 0.15876893014167073, 'fraction_numerical': 0.0039081582804103565, 'mean_word_length': 4.704735376044568, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3581599', 'n_tokens_mistral': 722, 'n_tokens_neox': 702, 'n_words': 132}