<commit_before>module Metatron
  module ApplicationHelper
    def header_tags
      [
        metatron_tags
      ].join("\n").html_safe
    end

    def metatron_tags
      [
        meta_tag(property: 'fb:app_id', content: '1434650413476851'),
        twitter_card,
        meta_tag(name: 'twitter:site', content: '@IPlayRedGaming'),
        meta_tag(name: 'twitter:creator', content: '@IPlayRedGaming'),
        meta_tag(property: 'og:type', content: 'website'),
        meta_tag(property: 'og:site_name', content: 'I Play Red'),
        meta_tag(property: 'og:url', content: url),
        tag(:link, rel: 'canonical', href: url),
        title_tags,
        description_tags,
        player_tags,
        image_tags,
        video_tags,
        keywords_tags,
      ].flatten.compact.join("\n").html_safe
    end

    def twitter_card
      card = metatron.player.present? ? 'player' : 'summary_large_image'
      meta_tag(name: 'twitter:card', content: card)
    end

    def player_tags
      return [] unless (metatron.player).present?
      [
        meta_tag(name: 'twitter:player', content: metatron.player)
      ]
    end

    def keywords_tags
      return [] unless (keywords).present?
      [
        meta_tag(name: 'keywords', content: keywords),
      ]
    end

    def image_tags
      return [] unless metatron.image
      [
        meta_tag(property: 'og:image', content: metatron.image),
        meta_tag(name: 'twitter:image:src', content: metatron.image)
      ]
    end
<commit_msg>player width / height<commit_after>module Metatron
  module ApplicationHelper
    def header_tags
      [
        metatron_tags
      ].join("\n").html_safe
    end

    def metatron_tags
      [
        meta_tag(property: 'fb:app_id', content: '1434650413476851'),
        twitter_card,
        meta_tag(name: 'twitter:site', content: '@IPlayRedGaming'),
        meta_tag(name: 'twitter:creator', content: '@IPlayRedGaming'),
        meta_tag(property: 'og:type', content: 'website'),
        meta_tag(property: 'og:site_name', content: 'I Play Red'),
        meta_tag(property: 'og:url', content: url),
        tag(:link, rel: 'canonical', href: url),
        title_tags,
        description_tags,
        player_tags,
        image_tags,
        video_tags,
        keywords_tags,
      ].flatten.compact.join("\n").html_safe
    end

    def twitter_card
      card = metatron.player.present? ? 'player' : 'summary_large_image'
      meta_tag(name: 'twitter:card', content: card)
    end

    def player_tags
      return [] unless (metatron.player).present?
      [
        meta_tag(name: 'twitter:player', content: metatron.player),
        meta_tag(name: 'twitter:player:width', content: '1280'),
        meta_tag(name: 'twitter:player:height', content: '720')
      ]
    end

    def keywords_tags
      return [] unless (keywords).present?
      [
        meta_tag(name: 'keywords', content: keywords),
      ]
    end

    def image_tags
      return [] unless metatron.image
      [
        meta_tag(property: 'og:image', content: metatron.image),
        meta_tag(name: 'twitter:image:src', content: metatron.image)
      ]
    end

{'fraction_non_alphanumeric': 0.12404822335025381, 'fraction_numerical': 0.012373096446700508, 'mean_word_length': 2.59521094640821, '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': '1357225', 'n_tokens_mistral': 1031, 'n_tokens_neox': 982, 'n_words': 202}