<commit_before><div lang="<%= case_locale %>" id="container">
  <%= render 'noscript', kase: @case %>
</div>

<%= render 'catalog/content_items/selection_params' %>

<%=javascript_tag do %>
  window.caseData = <%=
  raw ActiveModel::Serializer.for(
    @case,
    serializer: Cases::ShowSerializer, view_context: controller.view_context,
    deployment: @deployment, enrollment: @enrollment
  )
    .to_json
  %>
<% end %>

<%=javascript_pack_tag "case"%>

<%= content_for :head do %>
  <meta property="og:title" content="<%= "#{@case.kicker}: #{@case.title}" %>" />
  <meta property="og:type" content="article" />
  <meta property="og:url" content="<%= case_url @case %>" />
  <meta property="og:image" content="<%= @case.open_graph_cover_url %>" />
  <meta property="og:image:width" content="1200" />
  <meta property="og:image:height" content="675" />
  <meta property="og:description" content="<%= @case.dek %>" />
  <% @case.authors.each do |author| %>
    <meta property="article:author" content="<%= author %>" />
  <% end %>
<% end %><commit_msg>added twitter card to case show<commit_after><div lang="<%= case_locale %>" id="container">
  <%= render 'noscript', kase: @case %>
</div>

<%= render 'catalog/content_items/selection_params' %>

<%=javascript_tag do %>
  window.caseData = <%=
  raw ActiveModel::Serializer.for(
    @case,
    serializer: Cases::ShowSerializer, view_context: controller.view_context,
    deployment: @deployment, enrollment: @enrollment
  )
    .to_json
  %>
<% end %>

<%=javascript_pack_tag "case"%>

<%= content_for :head do %>
  <meta name="twitter:card" content="summary"></meta>
  <meta property="og:title" content="<%= "#{@case.kicker}: #{@case.title}" %>" />
  <meta property="og:type" content="article" />
  <meta property="og:url" content="<%= case_url @case %>" />
  <meta property="og:image" content="<%= @case.open_graph_cover_url %>" />
  <meta property="og:image:width" content="1200" />
  <meta property="og:image:height" content="675" />
  <meta property="og:description" content="<%= @case.dek %>" />
  <% @case.authors.each do |author| %>
    <meta property="article:author" content="<%= author %>" />
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.21559633027522937, 'fraction_numerical': 0.006422018348623854, 'mean_word_length': 5.092178770949721, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '2735235', 'n_tokens_mistral': 800, 'n_tokens_neox': 739, 'n_words': 144}