<commit_before>%h1 Admin tools


%ul.nav.nav-tabs
  %li.active= link_to "Fake Data", "#fake", "data-toggle" => 'tab'
  %li= link_to "Spiked swarms", "#spiked", "data-toggle" => 'tab'
  %li= link_to "Tokens ", "#spiked", "data-toggle" => 'tab'

.tab-content
  #fate.tab-pane.active
    %h2 Fake data

    %p= button_to "Clear out fake data, make fake swarms/users", dummy_up_admin_path, :class => "btn btn-default"
    %p= button_to "Clear out fake data", delete_dummy_admin_path, :class => "btn btn-default"
    %p= button_to "Create dummy users", create_dummy_users_admin_path, :class => "btn btn-default"
    %p= button_to "Create dummy swarms", create_dummy_swarms_admin_path, :class => "btn btn-default"

  #spiked.tab-pane
    %h2 Spiked swarms.
    = render :partial => "swarms/swarm_table", :locals => {:swarms => @spiked_swarms}

  #tokens.tab-pane
    %h2 Tokens
    %p= button_to "Regenerate tokens", regenerate_tokens_path, :class => "btn btn-default"<commit_msg>Bother.<commit_after>%h1 Admin tools


%ul.nav.nav-tabs
  %li.active= link_to "Fake Data", "#fake", "data-toggle" => 'tab'
  %li= link_to "Spiked swarms", "#spiked", "data-toggle" => 'tab'
  %li= link_to "Tokens ", "#tokens", "data-toggle" => 'tab'

.tab-content
  #fate.tab-pane.active
    %h2 Fake data

    %p= button_to "Clear out fake data, make fake swarms/users", dummy_up_admin_path, :class => "btn btn-default"
    %p= button_to "Clear out fake data", delete_dummy_admin_path, :class => "btn btn-default"
    %p= button_to "Create dummy users", create_dummy_users_admin_path, :class => "btn btn-default"
    %p= button_to "Create dummy swarms", create_dummy_swarms_admin_path, :class => "btn btn-default"

  #spiked.tab-pane
    %h2 Spiked swarms.
    = render :partial => "swarms/swarm_table", :locals => {:swarms => @spiked_swarms}

  #tokens.tab-pane
    %h2 Tokens
    %p= button_to "Regenerate tokens", regenerate_tokens_admin_path, :class => "btn btn-default"
{'fraction_non_alphanumeric': 0.15657084188911705, 'fraction_numerical': 0.004106776180698152, 'mean_word_length': 4.354395604395604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '5317853', 'n_tokens_mistral': 738, 'n_tokens_neox': 720, 'n_words': 181}