<commit_before>@import helpers.Ogp
@import java.time.format.DateTimeFormatter
@import java.time.LocalDateTime
@import play.api.i18n.{Messages => msg}
@import scala.collection.{immutable => imm}
@(
  rec: (Article, imm.Seq[Comment]),
  publishDateFormatter: DateTimeFormatter,
  toLocalDateTime: Long => LocalDateTime,
  commentForm: Form[Comment],
  thumbnail: Option[ImageId]
)(
  implicit messagesApi: msg,
  request: RequestHeader,
  flash: Flash,
  loginBlogger: Option[LoginBlogger],
  settings: Settings
)

@main(messagesApi("top"), loginBlogger) {
  <meta property="og:url" content="@settings.SiteLink@routes.HomeController.showArticleById(rec._1.id.value)" />
  <meta property="og:type" content="article" />
  <meta property="og:title" content="@rec._1.title" />
  <meta property="og:description" content="@Html(Ogp.description(rec._1.body))" />
  <meta property="og:site_name" content="@settings.SiteTitle" />
  @thumbnail.map { t =>
    <meta property="og:image" content="@settings.SiteLink@routes.FileController.getImage(t.value)" />
  }.getOrElse("")
  <meta content="summary_large_image" name="twitter:card" />
  <meta content="@settings.SiteTitle" name="twitter:site" />
  <meta content="@rec._1.title" property="twitter:title" />
  <meta content="@Html(Ogp.description(rec._1.body))" property="twitter:description" />
  @thumbnail.map { t =>
    <meta content="@settings.SiteLink@routes.FileController.getImage(t.value)" property="twitter:image:src" />
  }.getOrElse("")
  <script src="@routes.Assets.versioned("javascripts/index.js")"></script>
  <script src="@routes.Assets.versioned("javascripts/comment.js")"></script>
  <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/index.css")">
} {
  @helper.form(action = helper.CSRF(routes.ArticleController.remove()), 'id -> "removeArticleForm") {
    <input type="hidden" class="id" name="id" value="">
  }

  @helper.form(action = helper.CSRF(routes.ArticleController.removeComment()), 'id -> "removeCommentForm") {
    <input type="hidden" class="id" name="id" value="">
  }

  <div class="article">
    <div class="titleBar">
      <div class="id">
        #@rec._1.id.value
      </div>
      <div class="articleTitle">
        <a href="@routes.HomeController.fromId(rec._1.id.value)">@rec._1.title</a>
      </div>
      <div class="rightPane">
        <div class="publishDate"><commit_msg>Remove twitter specific OGP tags.<commit_after>@import helpers.Ogp
@import java.time.format.DateTimeFormatter
@import java.time.LocalDateTime
@import play.api.i18n.{Messages => msg}
@import scala.collection.{immutable => imm}
@(
  rec: (Article, imm.Seq[Comment]),
  publishDateFormatter: DateTimeFormatter,
  toLocalDateTime: Long => LocalDateTime,
  commentForm: Form[Comment],
  thumbnail: Option[ImageId]
)(
  implicit messagesApi: msg,
  request: RequestHeader,
  flash: Flash,
  loginBlogger: Option[LoginBlogger],
  settings: Settings
)

@main(messagesApi("top"), loginBlogger) {
  <meta property="og:url" content="@settings.SiteLink@routes.HomeController.showArticleById(rec._1.id.value)" />
  <meta property="og:type" content="article" />
  <meta property="og:title" content="@rec._1.title" />
  <meta property="og:description" content="@Html(Ogp.description(rec._1.body))" />
  <meta property="og:site_name" content="@settings.SiteTitle" />
  @thumbnail.map { t =>
    <meta property="og:image" content="@settings.SiteLink@routes.FileController.getImage(t.value)" />
  }.getOrElse("")
  <script src="@routes.Assets.versioned("javascripts/index.js")"></script>
  <script src="@routes.Assets.versioned("javascripts/comment.js")"></script>
  <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/index.css")">
} {
  @helper.form(action = helper.CSRF(routes.ArticleController.remove()), 'id -> "removeArticleForm") {
    <input type="hidden" class="id" name="id" value="">
  }

  @helper.form(action = helper.CSRF(routes.ArticleController.removeComment()), 'id -> "removeCommentForm") {
    <input type="hidden" class="id" name="id" value="">
  }

  <div class="article">
    <div class="titleBar">
      <div class="id">
        #@rec._1.id.value
      </div>
      <div class="articleTitle">
        <a href="@routes.HomeController.fromId(rec._1.id.value)">@rec._1.title</a>
      </div>
      <div class="rightPane">
        <div class="publishDate">
{'fraction_non_alphanumeric': 0.18323052318939914, 'fraction_numerical': 0.00411240575736806, 'mean_word_length': 5.201133144475921, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '966392', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1416, 'n_words': 223}