<commit_before>module ApplicationHelper
  def default_meta_tags
    {
      viewport: 'width=device-width,minimum-scale=1,initial-scale=1',
      site: 'Francesco Boffa',
      reverse: true,
      separator: '|'
    }
  end

  def blog_jsonld
    {
      "@context": "http://schema.org",
      "@type": "Blog",
      "name": "<NAME>",
      "url": "https://francescoboffa.com",
      "description": "My ramblings about AWS, Ruby and Tech in general. I'm getting AWS certified!",
      "sameAs": [
        "https://twitter.com/frboffa",
        "https://www.linkedin.com/in/francescoboffa/",
        "https://www.facebook.com/fr.boffa"
      ]
    }
  end

  def post_jsonld(post)
    {
      "@context": "https://schema.org",
      "@type": "BlogPosting",
      "headline": post.title,
      "description": post.meta_description,
      "datePublished": post.published_at.iso8601,
      "datemodified": post.updated_at.iso8601,
      "mainEntityOfPage": "True",
      "author": {
        "@type": "Person",
        "name": "<NAME>",
        "url": "https://francescoboffa.com"
      },
      "articleBody": post.rendered_body
    }
  end
end<commit_msg>Added publisher to blogposting<commit_after>module ApplicationHelper
  def default_meta_tags
    {
      viewport: 'width=device-width,minimum-scale=1,initial-scale=1',
      site: '<NAME>',
      reverse: true,
      separator: '|'
    }
  end

  def blog_jsonld
    {
      "@context": "http://schema.org",
      "@type": "Blog",
      "name": "<NAME>",
      "url": "https://francescoboffa.com",
      "description": "My ramblings about AWS, Ruby and Tech in general. I'm getting AWS certified!",
      "sameAs": [
        "https://twitter.com/frboffa",
        "https://www.linkedin.com/in/francescoboffa/",
        "https://www.facebook.com/fr.boffa"
      ]
    }
  end

  def post_jsonld(post)
    {
      "@context": "https://schema.org",
      "@type": "BlogPosting",
      "headline": post.title,
      "description": post.meta_description,
      "datePublished": post.published_at.iso8601,
      "datemodified": post.updated_at.iso8601,
      "mainEntityOfPage": "True",
      "author": {
        "@type": "Person",
        "name": "<NAME>",
        "url": "https://francescoboffa.com"
      },
      "publisher": {
        "@type": "Person",
        "name": "<NAME>",
        "url": "https://francescoboffa.com"
      },
      "articleBody": post.rendered_body
    }
  end
end
{'fraction_non_alphanumeric': 0.17042195821384679, 'fraction_numerical': 0.00819336337566571, 'mean_word_length': 2.4249649368863957, 'pattern_counts': {'":': 40, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 13, 'lorem ipsum': 0, 'www.': 4, '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': '3931012', 'n_tokens_mistral': 848, 'n_tokens_neox': 833, 'n_words': 146}