<commit_before>form.questions.figure-set.form-inline method='post'
  - if @answer.question_num < @data[:figure_sets].size - 1
    input type='hidden' name='state' value=@answer.state
  input type='hidden' name='question_num' value=@answer.next_question_num
  - step = @answer.question_num.abs / SurveyAnswer::QuestionsPerStage
  - steps = @data[:figure_sets].size / SurveyAnswer::QuestionsPerStage + \
    (@data[:figure_sets].size % SurveyAnswer::QuestionsPerStage != 0 ? 1 : 0)
  - if @answer.question_num < 0
    h2 Gratulacje, ukończyłeś etap #{step} z #{steps}
    .vspace2
    .meme.text-center
      img src="/img/memes/#{step}.jpg"
    .vspace2
    .text-center
      button.continue.btn.btn-primary.btn-large type='submit' Dalej
  - else
    h2 Etap #{step + 1} z #{steps}
    .alert.alert-info
      strong  Zmęczony?
      '  W każdej chwili możesz przerwać badanie i kontynuować je później. Wystarczy, że powrócisz na tę stronę.
    - answered_figure_sets = @answer.answer_data.keys
    - figure_set = @data[:figure_sets].sample while figure_set.nil? or answered_figure_sets.include?(figure_set[:id])
    - figure_set[:figures].shuffle!<commit_msg>Added information about remaining questions in figures survey<commit_after>form.questions.figure-set.form-inline method='post'
  - if @answer.question_num < @data[:figure_sets].size - 1
    input type='hidden' name='state' value=@answer.state
  input type='hidden' name='question_num' value=@answer.next_question_num
  - step = @answer.question_num.abs / SurveyAnswer::QuestionsPerStage
  - steps = @data[:figure_sets].size / SurveyAnswer::QuestionsPerStage + \
    (@data[:figure_sets].size % SurveyAnswer::QuestionsPerStage != 0 ? 1 : 0)
  - remaining_questions_in_step = SurveyAnswer::QuestionsPerStage - @answer.question_num.abs % SurveyAnswer::QuestionsPerStage
  - if @answer.question_num < 0
    h2 Gratulacje, ukończyłeś etap #{step} z #{steps}
    .vspace2
    .meme.text-center
      img src="/img/memes/#{step}.jpg"
    .vspace2
    .text-center
      button.continue.btn.btn-primary.btn-large type='submit' Dalej
  - else
    h2
      ' Etap #{step + 1} z #{steps}
      small #{remaining_questions_in_step} zestawów do końca etapu
    .alert.alert-info
      strong  Zmęczony?
      '  W każdej chwili możesz przerwać badanie i kontynuować je później. Wystarczy, że powrócisz na tę stronę.
    - answered_figure_sets = @answer.answer_data.keys
    - figure_set = @data[:figure_sets].sample while figure_set.nil? or answered_figure_sets.include?(figure_set[:id])
    - figure_set[:figures].shuffle!
{'fraction_non_alphanumeric': 0.12490272373540856, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 3.878557874762808, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5546300', 'n_tokens_mistral': 906, 'n_tokens_neox': 885, 'n_words': 174}