<commit_before>= render :partial => "swarms/swarm_page_js"

= render :partial => "swarms/swarm_header"
- if @swarm.user == @current_user
  = render :partial => "swarms/swarm_description_open_close_logged_in"
- else
  = render :partial => "swarms/swarm_description_open_close"

%hr

%h2 Results
- if @swarm.closed? || @current_user
  - if @elasticsearch_error
    %p= @elasticsearch_error
  - else
    = render :partial => "swarms/swarm_results"<commit_msg>Front-end link to download swarm.<commit_after>= render :partial => "swarms/swarm_page_js"

= render :partial => "swarms/swarm_header"
- if @swarm.user == @current_user
  = render :partial => "swarms/swarm_description_open_close_logged_in"
- else
  = render :partial => "swarms/swarm_description_open_close"

%hr

%h2 
  Results
  = link_to "CSV", csv_swarm_path(@swarm), :class => "btn btn-default", :style => 'float: right'

.clear

- if @swarm.closed? || @current_user
  - if @elasticsearch_error
    %p= @elasticsearch_error
  - else
    = render :partial => "swarms/swarm_results"
{'fraction_non_alphanumeric': 0.138328530259366, 'fraction_numerical': 0.0019212295869356388, 'mean_word_length': 4.693989071038251, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7582640', 'n_tokens_mistral': 376, 'n_tokens_neox': 376, 'n_words': 75}