<commit_before>- title(rand(100) == 0 ? @run.name.gsub("Star Fox Adventures", "Stair Fax Temperatures") : @run.name)
= render partial: 'twitter_card'

.container
  %h2= yield(:title)
  %h5= render partial: 'shared/time', locals: {time: @run.time, show_milliseconds: @run.short?}
  - if @run.user
    %h6
      %a#twitch-channel{href: @run.user.uri, target: :_blank}= @run.user.uri.to_s.gsub('http://www.', '')
  = render partial: 'shared/alerts'
  %h6
    %span#download-menu
      %a{href: download_path(@run, @run.program), onclick: 'hide_download_menu()'}= @run.program
      - ([:wsplit, :timesplittracker, :splitterz, :livesplit] - [@run.program]).each do |program|
        &bull;
        %a{href: download_path(@run, program), onclick: 'hide_download_menu()'}= program
    %a.fake-link#download-link{onclick: 'toggle_download_menu()'} ↓ download
    - if @run.best_known?
      - if !@run.belongs_to?(current_user) && current_user.runs?(@run.category)
        |
        %a{href: compare_path(@run, current_user.pb_for(@run.category))} compare to my pb
      | ✓ best on record
    - elsif @run.pb?
      - if @run.belongs_to?(current_user)
        |
        %a{href: compare_path(@run, @run.category.best_known_run)} compare to best on record
      | ✓ pb

= render partial: 'shared/timeline', locals: {run: @run}
= render partial: 'shared/timeline_inspector', locals: {run: @run}

.container
  - cache [:splits, :v1, @run] do
    = render partial: 'shared/split_table', locals: {splits: @run.splits, comparison_splits: @run.splits}
<commit_msg>Fix a bug that 500d runs when not logged in<commit_after>- title(rand(100) == 0 ? @run.name.gsub("Star Fox Adventures", "Stair Fax Temperatures") : @run.name)
= render partial: 'twitter_card'

.container
  %h2= yield(:title)
  %h5= render partial: 'shared/time', locals: {time: @run.time, show_milliseconds: @run.short?}
  - if @run.user
    %h6
      %a#twitch-channel{href: @run.user.uri, target: :_blank}= @run.user.uri.to_s.gsub('http://www.', '')
  = render partial: 'shared/alerts'
  %h6
    %span#download-menu
      %a{href: download_path(@run, @run.program), onclick: 'hide_download_menu()'}= @run.program
      - ([:wsplit, :timesplittracker, :splitterz, :livesplit] - [@run.program]).each do |program|
        &bull;
        %a{href: download_path(@run, program), onclick: 'hide_download_menu()'}= program
    %a.fake-link#download-link{onclick: 'toggle_download_menu()'} ↓ download
    - if @run.best_known?
      - if !@run.belongs_to?(current_user) && current_user.try(:runs?, @run.category)
        |
        %a{href: compare_path(@run, current_user.pb_for(@run.category))} compare to my pb
      | ✓ best on record
    - elsif @run.pb?
      - if @run.belongs_to?(current_user)
        |
        %a{href: compare_path(@run, @run.category.best_known_run)} compare to best on record
      | ✓ pb

= render partial: 'shared/timeline', locals: {run: @run}
= render partial: 'shared/timeline_inspector', locals: {run: @run}

.container
  - cache [:splits, :v1, @run] do
    = render partial: 'shared/split_table', locals: {splits: @run.splits, comparison_splits: @run.splits}

{'fraction_non_alphanumeric': 0.17208413001912046, 'fraction_numerical': 0.006692160611854685, 'mean_word_length': 3.8070444104134764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5075533', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1136, 'n_words': 246}