<commit_before>class PodcastsController < ApplicationController
  def show
    @podcast = Podcast.find(podcast_params)

    if @podcast.locked? && !params[:unlock]
      redirect_to @podcast.published_url
    else
      if stale?(last_modified: @podcast.updated_at.utc, etag: @podcast.cache_key)
        @episodes = @podcast.feed_episodes
      end
    end
  end

  private

  def podcast_params
    params.permit(:id).require(:id)
  end
end<commit_msg>Set the default feed for the podcast<commit_after>class PodcastsController < ApplicationController
  def show
    @podcast = Podcast.find(podcast_params)
    @feed = @podcast.default_feed

    if @podcast.locked? && !params[:unlock]
      redirect_to @podcast.published_url
    else
      if stale?(last_modified: @podcast.updated_at.utc, etag: @podcast.cache_key)
        @episodes = @podcast.feed_episodes
      end
    end
  end

  private

  def podcast_params
    params.permit(:id).require(:id)
  end
end
{'fraction_non_alphanumeric': 0.09345794392523364, 'fraction_numerical': 0.0, 'mean_word_length': 3.483720930232558, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2541565', 'n_tokens_mistral': 325, 'n_tokens_neox': 316, 'n_words': 65}