<commit_before>class Admin::PublicationSubclassesController < Admin::BaseController

  def new
    render :controller => "admin/#{class_identifier.to_s.pluralize}", :action => 'new'
  end

  def show
    @resource = resource
    @latest_edition = resource.latest_edition
    render :controller => "admin/#{class_identifier.to_s.pluralize}", :action => 'show'
  end

  def create
    @resource = current_user.create_publication(class_identifier, params[class_identifier])
    if @resource.save
      redirect_to resource_path(@resource),
        :notice => "#{description(@resource)} successfully created"
      return
    else
      render :controller => "admin/#{class_identifier.to_s.pluralize}", :action => 'new'
    end
  end

  def destroy
    if resource.can_destroy?
      destroy! do
        redirect_to admin_root_url, :notice => "#{description(resource)} destroyed"
        return
      end<commit_msg>Remove explicit rendering that is not needed.<commit_after>class Admin::PublicationSubclassesController < Admin::BaseController

  def show
    @resource = resource
    @latest_edition = resource.latest_edition
  end

  def create
    @resource = current_user.create_publication(class_identifier, params[class_identifier])
    if @resource.save
      redirect_to resource_path(@resource),
        :notice => "#{description(@resource)} successfully created"
      return
    else
      render :action => "new"
    end
  end

  def destroy
    if resource.can_destroy?
      destroy! do
        redirect_to admin_root_url, :notice => "#{description(resource)} destroyed"
        return
      end
{'fraction_non_alphanumeric': 0.10031152647975078, 'fraction_numerical': 0.0, 'mean_word_length': 3.6416184971098264, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '6538379', 'n_tokens_mistral': 446, 'n_tokens_neox': 438, 'n_words': 106}