<commit_before>ActiveAdmin.register_page "Dashboard" do

  menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") }

  content title: proc{ I18n.t("active_admin.dashboard") } do
    div class: "blank_slate_container", id: "dashboard_default_message" do
      span class: "blank_slate" do
        span I18n.t("active_admin.dashboard_welcome.welcome")
        small I18n.t("active_admin.dashboard_welcome.call_to_action")
      end
    end
<commit_msg>show blank ADMIN_NAMESPACE warning in admin dashboard, closes #11<commit_after>ActiveAdmin.register_page "Dashboard" do
  menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") }

  controller do
    before_action :show_namespace_warning, only: :index

    private

    def show_namespace_warning
      flash.now[:error] = 'Change ENV[\'ADMIN_NAMESPACE\'] for better security!' unless ENV['ADMIN_NAMESPACE'].present?
    end
  end

  content title: proc{ I18n.t("active_admin.dashboard") } do
    div class: "blank_slate_container", id: "dashboard_default_message" do
      span class: "blank_slate" do
        span I18n.t("active_admin.dashboard_welcome.welcome")
        small I18n.t("active_admin.dashboard_welcome.call_to_action")
      end
    end

{'fraction_non_alphanumeric': 0.10319410319410319, 'fraction_numerical': 0.01638001638001638, 'mean_word_length': 4.29004329004329, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5965321', 'n_tokens_mistral': 412, 'n_tokens_neox': 406, 'n_words': 87}