<commit_before>module Forms::SubmissionsHelper
  def render_field(field)
    case field
    when Forms::Fields::FieldSet
      render_fieldset(field)
    when Forms::Fields::CustomField
      render_custom_field(field)
    when Forms::Fields::Checkboxes
      labelled_field(field) do
        value = @submission.value_for(field)
        render_array(field, value || [""])
      end
    when Forms::Fields::TextArea
      labelled_field(field) do
        value = @submission.value_for(field)
        form.text_area field.label, :value => value || "", :readonly => true, :rows => 5
      end
    when Forms::Fields::ContentField<commit_msg>Don't show empty submit button fields on view submission page<commit_after>module Forms::SubmissionsHelper
  def render_field(field)
    case field
    when Forms::Fields::FieldSet
      render_fieldset(field)
    when Forms::Fields::CustomField
      render_custom_field(field)
    when Forms::Fields::Checkboxes
      labelled_field(field) do
        value = @submission.value_for(field)
        render_array(field, value || [""])
      end
    when Forms::Fields::TextArea
      labelled_field(field) do
        value = @submission.value_for(field)
        form.text_area field.label, :value => value || "", :readonly => true, :rows => 5
      end
    when Forms::Fields::ContentField, Forms::Fields::SubmitButton
{'fraction_non_alphanumeric': 0.11070110701107011, 'fraction_numerical': 0.0014760147601476014, 'mean_word_length': 3.5351170568561874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6068896', 'n_tokens_mistral': 404, 'n_tokens_neox': 381, 'n_words': 85}