<commit_before>module Kuhsaft
  module Cms
    class PagesController < AdminController
      helper :all

      def index
        @pages = Kuhsaft::Page.root_pages
        respond_with @pages
      end

      def show
        @page = Kuhsaft::Page.find(params[:id])
        respond_with @page
      end

      def new
        @page = Kuhsaft::Page.new
        @localized_page = @page.localized_pages.find_or_initialize_by_locale(params[:locale])
        respond_with @page
      end

      def create
        parent = Kuhsaft::Page.find(params[:kuhsaft_page][:parent_id]) if params[:kuhsaft_page][:parent_id].present?
        @page = Kuhsaft::Page.create params[:kuhsaft_page]<commit_msg>don't just load all helpers mate<commit_after>module Kuhsaft
  module Cms
    class PagesController < AdminController
      def index
        @pages = Kuhsaft::Page.root_pages
        respond_with @pages
      end

      def show
        @page = Kuhsaft::Page.find(params[:id])
        respond_with @page
      end

      def new
        @page = Kuhsaft::Page.new
        @localized_page = @page.localized_pages.find_or_initialize_by_locale(params[:locale])
        respond_with @page
      end

      def create
        parent = Kuhsaft::Page.find(params[:kuhsaft_page][:parent_id]) if params[:kuhsaft_page][:parent_id].present?
        @page = Kuhsaft::Page.create params[:kuhsaft_page]
{'fraction_non_alphanumeric': 0.09593023255813954, 'fraction_numerical': 0.0, 'mean_word_length': 2.7520435967302452, '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': '3099215', 'n_tokens_mistral': 432, 'n_tokens_neox': 439, 'n_words': 84}