<commit_before>#Iter 2-2 Disable the link for "pup_name" and fixed routing bug (By <NAME>, <NAME>)
ActiveAdmin.register_page "Dashboard" do

  menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
  
  index as: :grid do
  end

  content :title => proc{ I18n.t("active_admin.dashboard") } do
    columns do
      column do
        panel "Today's Dogs" do
          table_for Pup.where(created_at: Date.today..Date.today.next) do
            column :dog_name do |p|
              p.pup_name
            end
          end
        end
        panel "Today's User" do
          table_for User.where(created_at: Date.today..Date.today.next) do
            column :user_name do |p|
              p.username
            end
          end
        end
        
      panel "Site Statistic" do
      columns do
          column do
            line_chart  User.group_by_day(:created_at).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "User", animation: "true"
          end
          column do
            line_chart  Pup.group_by_day(:created_at).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "Pup Creation", animation: "true"
          end
                    column do
            line_chart  Breeder.group_by_day(:id).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "Breeder Creation", animation: "true"
          end
        end
      end
      end
    end
  end
end
<commit_msg>fix:  cleared unwanted code<commit_after>#Iter 2-2 Disable the link for "pup_name" and fixed routing bug (By <NAME>, <NAME>)
ActiveAdmin.register_page "Dashboard" do

  menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
  
  content :title => proc{ I18n.t("active_admin.dashboard") } do
    columns do
      column do
        panel "Today's Dogs" do
          table_for Pup.where(created_at: Date.today..Date.today.next) do
            column :dog_name do |p|
              p.pup_name
            end
          end
        end
        panel "Today's User" do
          table_for User.where(created_at: Date.today..Date.today.next) do
            column :user_name do |p|
              p.username
            end
          end
        end
        
      panel "Site Statistic" do
      columns do
          column do
            line_chart  User.group_by_day(:created_at).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "User", animation: "true"
          end
          column do
            line_chart  Pup.group_by_day(:created_at).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "Pup Creation", animation: "true"
          end
                    column do
            line_chart  Breeder.group_by_day(:id).count, 
            width: "500px", height: "300px", xtitle: "Date", ytitle: "Population", title: "Breeder Creation", animation: "true"
          end
        end
      end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.10767729342875731, 'fraction_numerical': 0.01626545217957059, 'mean_word_length': 1.9091769157994323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '732335', 'n_tokens_mistral': 1005, 'n_tokens_neox': 933, 'n_words': 266}