<commit_before>doctype 5
html
  head
    title= content_for(:title)

    = stylesheet_link_tag :catarse
    = favicon_link_tag 'favicon.ico'
    = csrf_meta_tag

    - if content_for? :meta_tags
      /project specific meta tags
      = yield :meta_tags
    - else
      /meta tags for the whole site
      meta name="description"         content=t('site.description')
      meta name="keywords"            content=t('site.keywords')
      meta property="og:title"        content=( channel.present? ? channel.name : t('site.title'))
      meta property="og:type"         content=:cause
      meta property="og:url"          content=url_for(only_path: false)
      meta property="og:image"        content=Configuration[:company_logo]
      meta property="og:site_name"    content=Configuration[:company_name]
      meta property="fb:app_id"       content=Configuration[:facebook_app_id]
      meta property="og:description"  content=( channel.present? ? channel.description : t('projects.index_header.title') + '. ' +  t('projects.index_header.subtitle'))

  body#catarse_bootstrap[data-namespace=namespace data-controller-name=controller_name data-action=action_name]
    = render 'layouts/uservoice'
    = render 'layouts/catarse_bootstrap_notices' if notice
    = render 'layouts/login_feedback_support' if devise_controller?

    .content= yield

  = javascript_include_tag :application
  = render 'layouts/analytics'<commit_msg>use try() instead of present?<commit_after>doctype 5
html
  head
    title= content_for(:title)

    = stylesheet_link_tag :catarse
    = favicon_link_tag 'favicon.ico'
    = csrf_meta_tag

    - if content_for? :meta_tags
      /project specific meta tags
      = yield :meta_tags
    - else
      /meta tags for the whole site
      meta name="description"         content=t('site.description')
      meta name="keywords"            content=t('site.keywords')
      meta property="og:title"        content=( channel.try(:name) || t('site.title'))
      meta property="og:type"         content=:cause
      meta property="og:url"          content=url_for(only_path: false)
      meta property="og:image"        content=Configuration[:company_logo]
      meta property="og:site_name"    content=Configuration[:company_name]
      meta property="fb:app_id"       content=Configuration[:facebook_app_id]
      meta property="og:description"  content=( channel.try(:description) || t('projects.index_header.title') + '. ' +  t('projects.index_header.subtitle'))

  body#catarse_bootstrap[data-namespace=namespace data-controller-name=controller_name data-action=action_name]
    = render 'layouts/uservoice'
    = render 'layouts/catarse_bootstrap_notices' if notice
    = render 'layouts/login_feedback_support' if devise_controller?

    .content= yield

  = javascript_include_tag :application
  = render 'layouts/analytics'
{'fraction_non_alphanumeric': 0.11029411764705882, 'fraction_numerical': 0.0007002801120448179, 'mean_word_length': 3.600644122383253, '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': '6078536', 'n_tokens_mistral': 855, 'n_tokens_neox': 828, 'n_words': 163}