<commit_before>module TheHub
  module Talk
    SELECTOR = /^talks\/[^\/]+\.html$/

    def title
      data[:title]
    end

    def session
      data[:session]
    end

    def day
      data[:day]
    end

    def video
      data[:video]
    end

    def speaker
      data[:speaker]
    end

    def room
      data[:room]
    end

    def preview
      @app.preview_for_talk(eponymous_directory_path)
    end

    def body
      render :layout => false
    end

    def notes<commit_msg>Add speaker link to talks.<commit_after>module TheHub
  module Talk
    SELECTOR = /^talks\/[^\/]+\.html$/

    def title
      data[:title]
    end

    def session
      data[:session]
    end

    def day
      data[:day]
    end

    def video
      data[:video]
    end

    def speaker_name
      data[:speaker]
    end

    def speaker
      @app.sitemap.where(:type => "speaker", :name => speaker_name).first
    end

    def room
      data[:room]
    end

    def preview
      @app.preview_for_talk(eponymous_directory_path)
    end

    def body
      render :layout => false
    end

    def notes
{'fraction_non_alphanumeric': 0.09247506799637353, 'fraction_numerical': 0.0, 'mean_word_length': 1.7669172932330828, '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': '5789136', 'n_tokens_mistral': 372, 'n_tokens_neox': 348, 'n_words': 94}