<commit_before>class Builder::PagesController < BuilderController

  def index
  end

  def show
    current_page
    if template_children.size == 0 || current_page.children.size == 0
      redirect_to builder_route([current_page], :edit)
    else
      redirect_to builder_site_page_children_path(
        current_site, current_page, template_children.first
      )
    end
  end

  def children
    render 'show'
  end<commit_msg>redirect page show to first settings group<commit_after>class Builder::PagesController < BuilderController

  def index
  end

  def show
    current_page
    if template_children.size == 0 || current_page.children.size == 0
      redirect_to builder_site_page_settings_path(
        current_site, current_page, current_template_groups.first
      )
    else
      redirect_to builder_site_page_children_path(
        current_site, current_page, template_children.first
      )
    end
  end

  def children
    render 'show'
  end
{'fraction_non_alphanumeric': 0.05711318795430945, 'fraction_numerical': 0.004153686396677051, 'mean_word_length': 3.3228699551569507, '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': '1777875', 'n_tokens_mistral': 282, 'n_tokens_neox': 271, 'n_words': 67}