<commit_before>%h1
  %b
    = @racer.start_number
  = '-'
  = @racer.first_name
  = @racer.last_name

%h4
  %b Klub:
  - if @racer.club.present?
    = link_to club_path(@racer.club) do
      = @racer.club.try(:name)
  - else
    Nema

%h4
  %b Godina rodenja:
  = @racer.year_of_birth
  %br
  %b Mjesto stanovanja:
  = @racer.town
%h4
  %b Kategorija:
  = @racer.category.upcase
- if user_signed_in? && (current_user.admin || current_user.racer == @racer)
  %p
    %b Kontakt:
    %ul
      %li
        = @racer.email
      %li
        %a{href: "tel:#{@racer.phone_number}"}
          = @racer.phone_number
      %li
        Adresa:
        = @racer.address
        = @racer.zip_code
        = @racer.town

%h4
  Utrke

%table.wide_table.mdl-data-table.mdl-js-data-table.mdl-shadow--2dp
  %thead
    %tr
      %th Utrka
      %th Vrijeme
      %th Bodovi
      %th Mjesto
  %tbody
    - @racer.race_results.each do |race_result|
      %tr
        %td= race_result.race.name
        %td= race_result.finish_time
        %td= race_result.points
        %td= Race.points.index(race_result.points) + 1

<commit_msg>Fix show<commit_after>%h1
  %b
    = @racer.start_number
  = '-'
  = @racer.first_name
  = @racer.last_name

%h4
  %b Klub:
  - if @racer.club.present?
    = link_to club_path(@racer.club) do
      = @racer.club.try(:name)
  - else
    Nema

%h4
  %b <NAME>:
  = @racer.year_of_birth
  %br
  %b Mjesto stanovanja:
  = @racer.town
%h4
  %b Kategorija:
  = @racer.category.upcase
- if user_signed_in? && (current_user.admin || current_user.racer == @racer)
  %p
    %b Kontakt:
    %ul
      %li
        = @racer.email
      %li
        %a{href: "tel:#{@racer.phone_number}"}
          = @racer.phone_number
      %li
        Adresa:
        = @racer.address
        = @racer.zip_code
        = @racer.town

%h4
  Utrke

%table.wide_table.mdl-data-table.mdl-js-data-table.mdl-shadow--2dp
  %thead
    %tr
      %th Utrka
      %th Vrijeme
      %th Bodovi
      %th Mjesto
  %tbody
    - @racer.race_results.each do |race_result|
      %tr
        %td= race_result.race.name
        %td= race_result.finish_time
        %td= race_result.points
        %td
          if race_result.points
            = Race.points.index(race_result.points) + 1
          else
            '- -'


{'fraction_non_alphanumeric': 0.1359860078705728, 'fraction_numerical': 0.006121556624398776, 'mean_word_length': 1.9637305699481866, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7565212', 'n_tokens_mistral': 963, 'n_tokens_neox': 953, 'n_words': 157}