<commit_before>#home
  .row
    .col-md-12
      .panel.panel-success#surveys
        .panel-heading
          Surveys - Participate in Research
        .panel-body
          %p.lead
            Each completed survey earns you an entry into
            = link_to 'our monthly drawing*', surveys_path
        .list-group
          - if current_user.nil? or current_user.has_no_started_surveys?
            - if QuestionFlow.viewable.present?
              - QuestionFlow.viewable.each do |s|
                .list-group-item
                  .row
                    .col-md-8
                      %h4= s.name
                      %p=markdown s.short_description
                      %p
                        %b
                          - if false
                            Done by
                            = pluralize(s.answer_sessions.count, "member")
                    .col-md-4
                      = link_to start_or_resume_survey(s), class: 'btn btn-success btn-lg btn-block survey-btn' do
                        Start Survey
                        &nbsp;
                        .fa.fa-arrow-right
                    .clearfix
            - else
              .panel-body
                %h3.text-success Nothing here yet - Check back soon!
          - else
            - if current_user.incomplete_surveys.present?
              - survey = current_user.incomplete_surveys.first
              .list-group-item
                .row
                  .col-md-8
                    %h4= survey.name
                    %p= survey.description
                  .col-md-4
                    = link_to start_or_resume_survey(survey, survey.most_recent_answer_session(current_user)), class: 'btn btn-success btn-lg btn-block survey-btn' do
                      Resume Survey
                      &nbsp;
                      .fa.fa-arrow-right<commit_msg>Added short_description to dashboard<commit_after>#home
  .row
    .col-md-12
      .panel.panel-success#surveys
        .panel-heading
          Surveys - Participate in Research
        .panel-body
          %p.lead
            Each completed survey earns you an entry into
            = link_to 'our monthly drawing*', surveys_path
        .list-group
          - if current_user.nil? or current_user.has_no_started_surveys?
            - if QuestionFlow.viewable.present?
              - QuestionFlow.viewable.each do |s|
                .list-group-item
                  .row
                    .col-md-8
                      %h4= s.name
                      %p=markdown s.short_description
                      %p
                        %b
                          - if false
                            Done by
                            = pluralize(s.answer_sessions.count, "member")
                    .col-md-4
                      = link_to start_or_resume_survey(s), class: 'btn btn-success btn-lg btn-block survey-btn' do
                        Start Survey
                        &nbsp;
                        .fa.fa-arrow-right
                    .clearfix
            - else
              .panel-body
                %h3.text-success Nothing here yet - Check back soon!
          - else
            - if current_user.incomplete_surveys.present?
              - survey = current_user.incomplete_surveys.first
              .list-group-item
                .row
                  .col-md-8
                    %h4= survey.name
                    %p= survey.short_description
                  .col-md-4
                    = link_to start_or_resume_survey(survey, survey.most_recent_answer_session(current_user)), class: 'btn btn-success btn-lg btn-block survey-btn' do
                      Resume Survey
                      &nbsp;
                      .fa.fa-arrow-right
{'fraction_non_alphanumeric': 0.07356443503572374, 'fraction_numerical': 0.004763164858428155, 'mean_word_length': 1.0021186440677967, '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': '5614638', 'n_tokens_mistral': 1007, 'n_tokens_neox': 951, 'n_words': 202}