<commit_before>#outcome-statement
  - if current_user == motion.author || current_user.is_group_admin?(this_group) 
    - if motion.outcome.blank?
      #outcome-input
        = form_for motion, :url => edit_outcome_motion_path(motion.id) do |f|
          = f.hidden_field :id
          .control-group
            = f.text_area :outcome, id: 'outcome-input', class: 'inputError limit-250', placeholder: "What was the outcome of this proposal?"
          .character-counter
          .save-button.clearfix
            = f.submit "Save", class: 'btn btn-mini run-validations', id: 'add-outcome-submit'
    - else
      #outcome-input.hidden
        = form_for motion, :url => edit_outcome_motion_path(motion.id) do |f|
          = f.hidden_field :id
          .control-group
            = f.text_area :outcome, id: 'outcome-input', class: 'inputError limit-250', placeholder: "What was the outcome of this proposal?"
          .character-counter
          .save-button.clearfix
            = f.submit "Save", class: 'btn btn-mini run-validations', id: 'add-outcome-submit'
  #outcome-display
    .statement-display.well
      .clearfix
        - if current_user == motion.author || current_user.is_group_admin?(this_group)
          = button_to "Edit", "#", class: 'btn btn-mini outcome-edit-button', id: 'edit-outcome', :method => "get"
        .outcome-label Outcome
        - if motion.outcome.blank?
          %p.no-outcome= "No outcome has been specified for this proposal"
        - else
          %p= motion.outcome<commit_msg>Bugfix: logged out users cannot view motions.<commit_after>#outcome-statement
  - if can? :edit_outcome, motion
    - if motion.outcome.blank?
      #outcome-input
        = form_for motion, :url => edit_outcome_motion_path(motion.id) do |f|
          = f.hidden_field :id
          .control-group
            = f.text_area :outcome, id: 'outcome-input', class: 'inputError limit-250', placeholder: "What was the outcome of this proposal?"
          .character-counter
          .save-button.clearfix
            = f.submit "Save", class: 'btn btn-mini run-validations', id: 'add-outcome-submit'
    - else
      #outcome-input.hidden
        = form_for motion, :url => edit_outcome_motion_path(motion.id) do |f|
          = f.hidden_field :id
          .control-group
            = f.text_area :outcome, id: 'outcome-input', class: 'inputError limit-250', placeholder: "What was the outcome of this proposal?"
          .character-counter
          .save-button.clearfix
            = f.submit "Save", class: 'btn btn-mini run-validations', id: 'add-outcome-submit'
  #outcome-display
    .statement-display.well
      .clearfix
        - if can? :edit_outcome, motion
          = button_to "Edit", "#", class: 'btn btn-mini outcome-edit-button', id: 'edit-outcome', :method => "get"
        .outcome-label Outcome
        - if motion.outcome.blank?
          %p.no-outcome= "No outcome has been specified for this proposal"
        - else
          %p= motion.outcome
{'fraction_non_alphanumeric': 0.12329223592135954, 'fraction_numerical': 0.003998667110963012, 'mean_word_length': 2.415244596131968, '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': '125542', 'n_tokens_mistral': 942, 'n_tokens_neox': 918, 'n_words': 228}