<commit_before>module Api
  module V1
    class EpisodesController < ApplicationController
      def index
        episodes = ViewObjects::Episodes.from_params(params)
        view = EpisodeDecorator.decorate_collection(episodes.with_release.paginate(page: params[:page], per_page: params.fetch(:per_page, 20)))

        render json: view.map{|episode| episode.as_json.merge(still: episode.still(500))}
      end
      private

      def respond_index(episodes)
        respond_to do |format|
          format.html{@view = EpisodeDecorator.decorate_collection(episodes.with_release.paginate(page: params[:page]))}
          format.rss {@view = EpisodeDecorator.decorate_collection(episodes.downloadable.with_release.with_distinct_releases.limit(100)); render :layout => false}
        end
      end
    end
  end
end<commit_msg>Fixed issue with name<commit_after>module Api
  module V1
    class EpisodesController < ApplicationController
      def index
        episodes = ViewObjects::Episodes.from_params(params)
        view = EpisodeDecorator.decorate_collection(episodes.with_release.paginate(page: params[:page], per_page: params.fetch(:per_page, 20)))

        render json: view.map{|episode| episode.as_json.merge(name: episode.tv_show.name, still: episode.still(500))}
      end
      private

      def respond_index(episodes)
        respond_to do |format|
          format.html{@view = EpisodeDecorator.decorate_collection(episodes.with_release.paginate(page: params[:page]))}
          format.rss {@view = EpisodeDecorator.decorate_collection(episodes.downloadable.with_release.with_distinct_releases.limit(100)); render :layout => false}
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09810874704491726, 'fraction_numerical': 0.010638297872340425, 'mean_word_length': 3.837142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7140963', 'n_tokens_mistral': 527, 'n_tokens_neox': 505, 'n_words': 90}