<commit_before>%a{:href => "#markdown-syntax", :'data-toggle' => "modal"}
  = t '.title'

#markdown-syntax.modal.hide.fade{"aria-hidden" => "true", "aria-labelledby" => "markdown-syntax", role: "dialog", tabindex: "-1"}
  .modal-header
    %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", type: "button"} x
    %h3#markdown-syntax-label
      %p
        = t '.title'

  .modal-body
    %p
      = t '.description_html'

    - # try to get a partial translated to the current locale
    - partial_name = "markdown_#{I18n.locale.to_s.underscore}"

    - # fall back to english if not found
    = render partial_name rescue render "markdown_en"

  .modal-footer
    %button.btn{"aria-hidden" => "true", "data-dismiss" => "modal"}
      = t '_other.close'<commit_msg>Better exception rescue treatment when searching for a partial<commit_after>%a{:href => "#markdown-syntax", :'data-toggle' => "modal"}
  = t '.title'

#markdown-syntax.modal.hide.fade{"aria-hidden" => "true", "aria-labelledby" => "markdown-syntax", role: "dialog", tabindex: "-1"}
  .modal-header
    %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", type: "button"} x
    %h3#markdown-syntax-label
      %p
        = t '.title'

  .modal-body
    %p
      = t '.description_html'

    - # try to get a partial translated to the current locale
    - partial_name = "markdown_#{I18n.locale.to_s.underscore}"

    - # fall back to english if not found
    - begin
      = render partial_name
    - rescue ActionView::MissingTemplate
      = render "markdown_en"

  .modal-footer
    %button.btn{"aria-hidden" => "true", "data-dismiss" => "modal"}
      = t '_other.close'
{'fraction_non_alphanumeric': 0.17237237237237238, 'fraction_numerical': 0.004804804804804805, 'mean_word_length': 3.165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2398930', 'n_tokens_mistral': 583, 'n_tokens_neox': 543, 'n_words': 131}