<commit_before>- if user_signed_in?
  - if (current_user.reviewer? || current_user.organizer?) && (@conference.in_early_review_phase? || @conference.in_final_review_phase?)
    - if (next_deadline = @conference.next_deadline(:reviewer))
      #date
        %p= t("conference.dates.#{next_deadline.last}")
        %p <strong>#{l(next_deadline.first.to_date)}</strong>
        #review_progress_count
          #{t('actions.review_goal')}:
          %span.progress
  - elsif current_user.organizer? && (next_deadline = @conference.next_deadline(:organizer)) && (next_deadline.last == :author_notification || next_deadline.last == :author_confirmation)
    #date
      %p= t("conference.dates.#{next_deadline.last}")
      %p <strong>#{l(next_deadline.first.to_date)}</strong>
      #review_decisions_progress_count
        #{t('actions.review_goal')}:
        %span.progress
  - elsif current_user.author?
    - if (next_deadline = @conference.next_deadline(:author))
      #date
        %p= t("conference.dates.#{next_deadline.last}")
        %p <strong>#{l(next_deadline.first.to_date)}</strong>

  %h3
    = render_avatar(current_user)
    &= current_user.full_name

  - sections_for(current_user, @conference, filter_params).each do |section|
    %h4= section.title
    %ul
    - section.actions.each do |action|
      %li= link_to action[:name], action[:link], action[:options]

  - if (current_user.reviewer? || current_user.organizer?) && (@conference.in_early_review_phase? || @conference.in_final_review_phase?)
    :javascript
      $(document).ready(function() {
        $.getJSON('#{reviews_path(@conference, format: :js)}', function(data) {
          var orange = Math.floor(parseInt(data.required_reviews) * 0.30);
          var yellow = Math.floor(parseInt(data.required_reviews) * 0.60);
          var green = Math.floor(parseInt(data.required_reviews) * 0.90);
          var progressImages = {};
          progressImages[0] = '/assets/progressbg_red.gif';
          progressImages[orange] = '/assets/progressbg_orange.gif';
          progressImages[yellow] = '/assets/progressbg_yellow.gif';
          progressImages[green] = '/assets/progressbg_green.gif';

          $("#review_progress_count .progress").progressBar(data.total_reviews, {
            boxImage : '/assets/progressbar.gif',
            max : data.required_reviews,
            textFormat : 'fraction',
            barImage : progressImages
          });
        })
      })
  - elsif current_user.organizer? && (next_deadline = @conference.next_deadline(:organizer)) && (next_deadline.last == :author_notification || next_deadline.last == :author_confirmation)
    - goal = next_deadline.last == :author_notification ? "data.required_decisions" : "data.total_accepted"
    - progress = next_deadline.last == :author_notification ? "data.total_decisions" : "data.total_confirmed"
    :javascript
      $(document).ready(function() {
        $.getJSON('#{review_decisions_path(@conference, format: :json)}', function(data) {
          var orange = Math.floor(parseInt(#{goal}) * 0.30);
          var yellow = Math.floor(parseInt(#{goal}) * 0.60);
          var green = Math.floor(parseInt(#{goal}) * 0.90);
          var progressImages = {};
          progressImages[0] = '/assets/progressbg_red.gif';
          progressImages[orange] = '/assets/progressbg_orange.gif';
          progressImages[yellow] = '/assets/progressbg_yellow.gif';
          progressImages[green] = '/assets/progressbg_green.gif';

          $("#review_decisions_progress_count .progress").progressBar(#{progress}, {
            boxImage : '/assets/progressbar.gif',<commit_msg>Closes #193<commit_after>- if user_signed_in?
  - if (current_user.reviewer? || current_user.organizer?) && (@conference.in_early_review_phase? || @conference.in_final_review_phase?)
    - if (next_deadline = @conference.next_deadline(:reviewer))
      #date
        %p= t("conference.dates.#{next_deadline.last}")
        %p <strong>#{l(next_deadline.first.to_date)}</strong>
        #review_progress_count
          #{t('actions.review_goal')}:
          %span.progress
  - elsif current_user.organizer? && (next_deadline = @conference.next_deadline(:organizer)) && (next_deadline.last == :author_notification || next_deadline.last == :author_confirmation)
    #date
      %p= t("conference.dates.#{next_deadline.last}")
      %p <strong>#{l(next_deadline.first.to_date)}</strong>
      #review_decisions_progress_count
        #{t('actions.review_goal')}:
        %span.progress
  - elsif current_user.author?
    - if (next_deadline = @conference.next_deadline(:author))
      #date
        %p= t("conference.dates.#{next_deadline.last}")
        %p <strong>#{l(next_deadline.first.to_date)}</strong>

  %h3
    = render_avatar(current_user)
    &= current_user.full_name

  - sections_for(current_user, @conference, filter_params).each do |section|
    %h4= section.title
    %ul
    - section.actions.each do |action|
      %li= link_to action[:name], action[:link], action[:options]

  - if (current_user.reviewer? || current_user.organizer?) && (@conference.in_early_review_phase? || @conference.in_final_review_phase?)
    :javascript
      $(document).ready(function() {
        $.getJSON('#{reviews_path(@conference, format: :js)}', function(data) {
          var orange = Math.floor(parseInt(data.required_reviews) * 0.30);
          var yellow = Math.floor(parseInt(data.required_reviews) * 0.60);
          var green = Math.floor(parseInt(data.required_reviews) * 0.90);
          var progressImages = {};
          progressImages[0] = '#{asset_path('progressbg_red.gif')}';
          progressImages[orange] = '#{asset_path('progressbg_orange.gif')}';
          progressImages[yellow] = '#{asset_path('progressbg_yellow.gif')}';
          progressImages[green] = '#{asset_path('progressbg_green.gif')}';

          $("#review_progress_count .progress").progressBar(data.total_reviews, {
            boxImage : '#{asset_path('progressbar.gif')}',
            max : data.required_reviews,
            textFormat : 'fraction',
            barImage : progressImages
          });
        })
      })
  - elsif current_user.organizer? && (next_deadline = @conference.next_deadline(:organizer)) && (next_deadline.last == :author_notification || next_deadline.last == :author_confirmation)
    - goal = next_deadline.last == :author_notification ? "data.required_decisions" : "data.total_accepted"
    - progress = next_deadline.last == :author_notification ? "data.total_decisions" : "data.total_confirmed"
    :javascript
      $(document).ready(function() {
        $.getJSON('#{review_decisions_path(@conference, format: :json)}', function(data) {
          var orange = Math.floor(parseInt(#{goal}) * 0.30);
          var yellow = Math.floor(parseInt(#{goal}) * 0.60);
          var green = Math.floor(parseInt(#{goal}) * 0.90);
          var progressImages = {};
          progressImages[0] = '#{asset_path('progressbg_red.gif')}';
          progressImages[orange] = '#{asset_path('progressbg_orange.gif')}';
          progressImages[yellow] = '#{asset_path('progressbg_yellow.gif')}';
          progressImages[green] = '#{asset_path('progressbg_green.gif')}';

          $("#review_decisions_progress_count .progress").progressBar(#{progress}, {
            boxImage : '#{asset_path('progressbar.gif')}',
{'fraction_non_alphanumeric': 0.15528034839412086, 'fraction_numerical': 0.0063962983124659775, 'mean_word_length': 3.503063725490196, 'pattern_counts': {'":': 0, '<': 15, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1195240', 'n_tokens_mistral': 2342, 'n_tokens_neox': 2319, 'n_words': 314}