<commit_before>- title @idea.title, show_title: false

- if @just_submitted
  - content_for :after_flashes do
    .flash.flash-banner.alert.alert-block.alert-success
      .container
        %button.close{ :'data-dismiss' => 'alert' }<
          %i.icon-remove

        - if @idea.submitted?
          %h4= _('Awesome! Your idea was submitted.')
          %p= _('As it is the most recently active story, it now appears at the top the the discussion list.')
          %p= _('This means your team should now start discussing it! Take part in the discussion to perfect your idea. Once it is correctly formatted and documented, a product manager and an architect should vet it, and the voting will start!')
        - elsif @idea.draft?
          %h4= _('Neat! You just created a draft idea.')
          %p= _('It will no be visible to others; we have bookmarked it for you so you can find it again by going to the "followed" angle.')
          %p= _('Once you\'re done preparing it, just edit it again and press "Submit idea".')
        - else
          - raise RuntimeError.new('bad idea state')

- if @idea.can_vote»? && can?(:create, @idea.votes.build) && !@idea.backed_by?(current_user)
  - content_for :after_flashes do
    .flash.flash-banner.alert.alert-block.alert-success
      .container
        %button.close{ :'data-dismiss' => 'alert' }<
          %i.icon-remove
        %h4= _('Time to vote!')
        %p= _('Please consider your decision to vote for an idea carefully.')
        %p= _(' You can only back so many ideas , as each vote will cost you %{count} %{karma}.').html_safe % { count: -configatron.app_fab.karma.vote, karma:user_karma_symbol }
        %p= _('You can withdraw your vote within 15 minutes of casting it if you\'re having second thoughts, but after that point, it will be final!')


.row
  .span9
    = render 'idea', idea: @idea, collapsed: false, status: :header

    #attachments
      = render @idea.attachments
    #comments
      = render 'comments/form', comment: Comment.new(idea: @idea)
      = render @idea.comments.by_created_at
  .span3
    = render 'action', idea: @idea
    = render 'attachments/uploader', idea: @idea

    %hr/
    .ht-with-margin-icon.muted
      .ht-margin-icon
        %i.icon-info-sign
      != idea_copy_for_state(@idea.state_name)<commit_msg>Fixes typo<commit_after>- title @idea.title, show_title: false

- if @just_submitted
  - content_for :after_flashes do
    .flash.flash-banner.alert.alert-block.alert-success
      .container
        %button.close{ :'data-dismiss' => 'alert' }<
          %i.icon-remove

        - if @idea.submitted?
          %h4= _('Awesome! Your idea was submitted.')
          %p= _('As it is the most recently active story, it now appears at the top the the discussion list.')
          %p= _('This means your team should now start discussing it! Take part in the discussion to perfect your idea. Once it is correctly formatted and documented, a product manager and an architect should vet it, and the voting will start!')
        - elsif @idea.draft?
          %h4= _('Neat! You just created a draft idea.')
          %p= _('It will no be visible to others; we have bookmarked it for you so you can find it again by going to the "followed" angle.')
          %p= _('Once you\'re done preparing it, just edit it again and press "Submit idea".')
        - else
          - raise RuntimeError.new('bad idea state')

- if @idea.can_vote»? && can?(:create, @idea.votes.build) && !@idea.backed_by?(current_user)
  - content_for :after_flashes do
    .flash.flash-banner.alert.alert-block.alert-success
      .container
        %button.close{ :'data-dismiss' => 'alert' }<
          %i.icon-remove
        %h4= _('Time to vote!')
        %p= _('Please consider your decision to vote for an idea carefully.')
        %p= _('You can only back so many ideas, as each vote will cost you %{count} %{karma}.').html_safe % { count: -configatron.app_fab.karma.vote, karma:user_karma_symbol }
        %p= _('You can withdraw your vote within 15 minutes of casting it if you\'re having second thoughts, but after that point, it will be final!')


.row
  .span9
    = render 'idea', idea: @idea, collapsed: false, status: :header

    #attachments
      = render @idea.attachments
    #comments
      = render 'comments/form', comment: Comment.new(idea: @idea)
      = render @idea.comments.by_created_at
  .span3
    = render 'action', idea: @idea
    = render 'attachments/uploader', idea: @idea

    %hr/
    .ht-with-margin-icon.muted
      .ht-margin-icon
        %i.icon-info-sign
      != idea_copy_for_state(@idea.state_name)
{'fraction_non_alphanumeric': 0.11960996749729144, 'fraction_numerical': 0.0030335861321776816, 'mean_word_length': 2.758957654723127, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2337204', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1416, 'n_words': 494}