<commit_before>%div.header
  %span= @icu_player.name(false)

- views = "pages/my_home/"

- if @my_home.recent_ratings? && @my_home.published_ratings?
  %table
    %tr.splitter
      %td= render partial: "#{views}recent_ratings", locals: { max: @my_home.max_rec }
      %td= render partial: "#{views}published_ratings"
- else
  = render partial: "#{views}recent_ratings", locals: { max: 0 } if @my_home.recent_ratings?
  = render partial: "#{views}published_ratings" if @my_home.published_ratings?

= render partial: "#{views}trn_gains_and_losses" if @my_home.trn_gains_and_losses?
= render partial: "#{views}game_gains_and_losses" if @my_home.game_gains_and_losses?

- if @my_home.anything_missing?
  = render partial: "#{views}explanation", locals: { views: views }

= render "shared/ratings_graph/dialog"

- if can?(:their_home, ::Pages::MyHome) && current_user.icu_id != @icu_player.id
  - add_top_link(@icu_player, "user_green", "#{@icu_player.name(false)} (#{@icu_player.id})")

#help
  %dl
    %dt Why is an Irish tournament in which I recently played not yet rated?
    %dd
      It's possible that the tournament...
      %ul
        %li has not finished yet (e.g. the Leinster and Munster leagues don't finish until April or May)
        %li report has not yet been received
        %li report has issues so the tournament cannot be rated yet
        %li
          is ready but not yet rated (in this case it will be listed
          = succeed(")") do
            = link_to "here", tournaments_path
        %li is not rateable, e.g. if it has too few rated players
        %li is not eligible, e.g. if it is a rapid or blitz
    %dt What is my latest rating if I haven't played any rated games since 2011?
    %dd= "The one inherited from the old rating system in #{t 'system.new.start'}."
    %dt How can I see the entire history of my published ratings?
    %dd
      Click a published rating on this page (if you have one) to see a graph or
      you can search for your published ratings (and those of other players') here:
      = succeed(",") do
        = link_to "ICU", icu_ratings_path
      = succeed(".") do
        = link_to "FIDE", fide_ratings_path
    %dt Some or all of my FIDE ratings are missing. Can this be fixed?
    %dd
      Please email the
      = succeed(".") do
        = mail_to_icu
    %dt Over what time span are my highest and lowest ICU and FIDE ratings calculated?
    %dd= "From #{t 'system.old.start'} for ICU and from #{t 'system.fide.start'} for FIDE."
    %dt Over what time span are my biggest ICU gains and losses calculated?
    %dd
      From the start of the new rating system,
      = succeed(".") do
        = t "system.new.start"
      Note that the display of gains and losses in individual games is only available for
      players with full ratings.
    %dt Why is my published rating 700 even though my actual rating is less than 700?
    %dd
      The ICU have had a long tradition of rounding up published ratings lower than 700
      to avoid discouraging beginners.<commit_msg>Another help text wording fix<commit_after>%div.header
  %span= @icu_player.name(false)

- views = "pages/my_home/"

- if @my_home.recent_ratings? && @my_home.published_ratings?
  %table
    %tr.splitter
      %td= render partial: "#{views}recent_ratings", locals: { max: @my_home.max_rec }
      %td= render partial: "#{views}published_ratings"
- else
  = render partial: "#{views}recent_ratings", locals: { max: 0 } if @my_home.recent_ratings?
  = render partial: "#{views}published_ratings" if @my_home.published_ratings?

= render partial: "#{views}trn_gains_and_losses" if @my_home.trn_gains_and_losses?
= render partial: "#{views}game_gains_and_losses" if @my_home.game_gains_and_losses?

- if @my_home.anything_missing?
  = render partial: "#{views}explanation", locals: { views: views }

= render "shared/ratings_graph/dialog"

- if can?(:their_home, ::Pages::MyHome) && current_user.icu_id != @icu_player.id
  - add_top_link(@icu_player, "user_green", "#{@icu_player.name(false)} (#{@icu_player.id})")

#help
  %dl
    %dt Why is an Irish tournament in which I recently played not yet rated?
    %dd
      It's possible that the tournament...
      %ul
        %li has not finished yet (e.g. the Leinster and Munster leagues don't finish until April or May)
        %li report has not yet been received
        %li report has issues so the tournament cannot be rated yet
        %li
          is ready but not yet rated (in this case it will be listed
          = succeed(")") do
            = link_to "here", tournaments_path
        %li is not rateable, e.g. if it has too few rated players
        %li is not eligible, e.g. if it is a rapid or blitz
    %dt What is my latest rating if I haven't played any rated games since 2011?
    %dd= "The one inherited from the old rating system in #{t 'system.new.start'}."
    %dt How can I see the entire history of my published ratings?
    %dd
      Click a published rating on this page (if you have one) to see a graph or
      you can search for your published ratings (and those of other players') here:
      = succeed(",") do
        = link_to "ICU", icu_ratings_path
      = succeed(".") do
        = link_to "FIDE", fide_ratings_path
    %dt Some or all of my FIDE ratings are missing. Can this be fixed?
    %dd
      Please email the
      = succeed(".") do
        = mail_to_icu
    %dt Over what time span are my highest and lowest ICU and FIDE ratings calculated?
    %dd= "From #{t 'system.old.start'} for ICU and from #{t 'system.fide.start'} for FIDE."
    %dt Over what time span are my biggest ICU gains and losses calculated?
    %dd
      From the start of the new rating system,
      = succeed(".") do
        = t "system.new.start"
      Note that the display of gains and losses in individual games is only available for
      players with full ratings.
    %dt Why is my published rating 700 even though my actual rating is less than 700?
    %dd
      The ICU have a long tradition of rounding up published ratings lower than 700
      to avoid discouraging beginners.
{'fraction_non_alphanumeric': 0.09655172413793103, 'fraction_numerical': 0.004597701149425287, 'mean_word_length': 3.0879194630872484, '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': '4101938', 'n_tokens_mistral': 1927, 'n_tokens_neox': 1864, 'n_words': 750}