<commit_before>module AsciicastsHelper

  def player(asciicast, options = {})
    if params[:fallback]
      player_class = "Asciinema.FallbackPlayer"
    else
      player_class = "window.Worker ? Asciinema.Player : Asciinema.FallbackPlayer"
    end

    if custom_renderer = params[:renderer]
      renderer_class = "Asciinema.Renderer.#{custom_renderer.capitalize}"
    else
      renderer_class = "Asciinema.Renderer.Pre"
    end

    render :partial => 'asciicasts/player', :locals => {
      asciicast: serialized_asciicast(asciicast),<commit_msg>Keep the sane line length<commit_after>module AsciicastsHelper

  def player(asciicast, options = {})
    if params[:fallback]
      player_class = "Asciinema.FallbackPlayer"
    else
      player_class =
        "window.Worker ? Asciinema.Player : Asciinema.FallbackPlayer"
    end

    if custom_renderer = params[:renderer]
      renderer_class = "Asciinema.Renderer.#{custom_renderer.capitalize}"
    else
      renderer_class = "Asciinema.Renderer.Pre"
    end

    render :partial => 'asciicasts/player', :locals => {
      asciicast: serialized_asciicast(asciicast),
{'fraction_non_alphanumeric': 0.10124333925399645, 'fraction_numerical': 0.0, 'mean_word_length': 3.676348547717842, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6696697', 'n_tokens_mistral': 372, 'n_tokens_neox': 374, 'n_words': 63}