<commit_before>require 'shortcodes/handler'

module Shortcodes
  class DocumentCloud < Handler

    def url
      url = shortcode.attributes.fetch('url')
    end

    def height
      attributes.fetch('height', 700)
    end

    def width
      attributes.fetch('width', 500)
    end

    def render
      <<TEMPLATE
<iframe width='500' height='300' frameborder='0' src='#{url}'></iframe>
TEMPLATE
    end

    Shortcodes.register_shortcode('gdocs', self)
    Shortcodes.register_shortcode('googledocs', self)
  end
end<commit_msg>Fix class name of Google Docs shortcode, and fix dimension handling<commit_after>require 'shortcodes/handler'

module Shortcodes
  class GoogleDocs < Handler

    def url
      url = shortcode.attributes.fetch('url')
    end

    def width
      attributes.fetch('width', 550)
    end

    def height
      attributes.fetch('height', 500)
    end

    def render
      <<TEMPLATE
<iframe width='#{width}' height='#{height}' frameborder='0' src='#{url}'></iframe>
TEMPLATE
    end

    Shortcodes.register_shortcode('gdocs', self)
    Shortcodes.register_shortcode('googledocs', self)
  end
end
{'fraction_non_alphanumeric': 0.11298932384341637, 'fraction_numerical': 0.017793594306049824, 'mean_word_length': 3.4466403162055337, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 7, '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': '3191718', 'n_tokens_mistral': 369, 'n_tokens_neox': 336, 'n_words': 85}