<commit_before># frozen_string_literal: true

module Folio
  module OpenGraphHelper
    def og_title
      @og_title.presence || public_page_title
    end

    def og_description
      @og_description.presence || public_page_description
    end

    def og_image
      begin
        @og_image || image_url('fb-share.jpg')
      rescue Sprockets::Rails::Helper::AssetNotFound
        nil
      end
    end

    def og_image_width
      @og_image_width || 1200
    end

    def og_image_height
      @og_image_height || 630
    end

    def og_site_name
      @og_site_name.presence || t('domain.short')
    end

    def og_url
      request.original_url.gsub('http://', 'https://')
    end
  end
end<commit_msg>F fb share image_url<commit_after># frozen_string_literal: true

module Folio
  module OpenGraphHelper
    def og_title
      @og_title.presence || public_page_title
    end

    def og_description
      @og_description.presence || public_page_description
    end

    def og_image
      begin
        @og_image || image_url('/fb-share.jpg')
      rescue Sprockets::Rails::Helper::AssetNotFound
        nil
      end
    end

    def og_image_width
      @og_image_width || 1200
    end

    def og_image_height
      @og_image_height || 630
    end

    def og_site_name
      @og_site_name.presence || t('domain.short')
    end

    def og_url
      request.original_url.gsub('http://', 'https://')
    end
  end
end
{'fraction_non_alphanumeric': 0.0819327731092437, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 2.4768856447688563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3089974', 'n_tokens_mistral': 489, 'n_tokens_neox': 463, 'n_words': 100}