<commit_before><%= link_to valuation_budget_budget_investment_path(@budget, @investment), class: 'back' do %>
  <span class="icon-angle-left"></span>
  <%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%>
<% end %>

<h2><%= t("valuation.budget_investments.edit.dossier") %></h2>

<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %>
  <%= render 'shared/errors', resource: @investment %>
  <div class="row">
    <div class="small-12 column">
      <fieldset class="fieldset">
        <legend><%= t('valuation.budget_investments.edit.feasibility') %></legend>
        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'undecided', label: false %>
              <%= f.label :feasibility_undecided, t('valuation.budget_investments.edit.undefined_feasible') %>
            </span>
        </div>

        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'feasible', label: false %>
              <%= f.label :feasibility_feasible, t('valuation.budget_investments.edit.feasible') %>
            </span>
        </div>

        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'unfeasible', label: false %>
              <%= f.label :feasibility_unfeasible, t('valuation.budget_investments.edit.unfeasible') %>
            </span>
        </div>
      </fieldset>
    </div>
  </div>

  <div id="unfeasible_fields" >

    <div class="row">
      <div class="small-12 column">
        <%= f.label :unfeasibility_explanation, t("valuation.budget_investments.edit.feasible_explanation_html") %>
        <%= f.text_area :unfeasibility_explanation, label: false, rows: 3 %>
      </div>
    </div>

  </div>

  <div id="feasible_fields">

    <div class="row">
      <div class="small-12 medium-6 column">
        <%= f.label :price, "#{t('valuation.budget_investments.edit.price_html', currency: @budget.currency_symbol)}" %>
        <%= f.number_field :price, label: false, max: 1000000000000000 %>
      </div>

      <div class="small-12 medium-6 column end">
        <%= f.label :price_first_year, "#{t('valuation.budget_investments.edit.price_first_year_html', currency:  @budget.currency_symbol)}" %>
        <%= f.number_field :price_first_year, label: false, max: 1000000000000000 %>
      </div>
    </div>

    <div class="row">
      <div class="small-12 column">
        <%= f.label :price_explanation, t("valuation.budget_investments.edit.price_explanation_html") %>
        <%= f.text_area :price_explanation, label: false, rows: 3 %>
      </div>
    </div>

    <div class="row">
      <div class="small-12 medium-6 column">
        <%= f.label :duration, t("valuation.budget_investments.edit.duration_html") %>
        <%= f.text_field :duration, label: false %>
      </div>
    </div>

  </div>

  <div class="row">
    <div class="small-12 medium-8 column">
      <%= f.label :valuation_finished do %>
        <%= f.check_box :valuation_finished, title: t('valuation.budget_investments.edit.valuation_finished'), label: false %>
        <span class="checkbox"><%= t("valuation.budget_investments.edit.valuation_finished") %></span>
      <% end %>
    </div>
  </div>

  <div class="row">
    <div class="small-12 column">
      <%= f.label :internal_comments, t("valuation.budget_investments.edit.internal_comments_html") %>
      <%= f.text_area :internal_comments, label: false, rows: 3 %>
    </div>
  </div>

  <div class="row">
    <div class="actions small-12 medium-4 column">
      <%= f.submit(class: "button expanded large", value: t("valuation.budget_investments.edit.save")) %>
    </div>
  </div>
<% end %>
<commit_msg>Added alerts data<commit_after><%= link_to valuation_budget_budget_investment_path(@budget, @investment), class: 'back' do %>
  <span class="icon-angle-left"></span>
  <%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%>
<% end %>

<h2><%= t("valuation.budget_investments.edit.dossier") %></h2>

<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %>
  <%= render 'shared/errors', resource: @investment %>
  <div class="row">
    <div class="small-12 column">
      <fieldset class="fieldset">
        <legend><%= t('valuation.budget_investments.edit.feasibility') %></legend>
        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'undecided', label: false %>
              <%= f.label :feasibility_undecided, t('valuation.budget_investments.edit.undefined_feasible') %>
            </span>
        </div>

        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'feasible', label: false %>
              <%= f.label :feasibility_feasible, t('valuation.budget_investments.edit.feasible') %>
            </span>
        </div>

        <div class="small-4 column">
            <span class="radio">
              <%= f.radio_button :feasibility, 'unfeasible', label: false %>
              <%= f.label :feasibility_unfeasible, t('valuation.budget_investments.edit.unfeasible') %>
            </span>
        </div>
      </fieldset>
    </div>
  </div>

  <div id="unfeasible_fields" >

    <div class="row">
      <div class="small-12 column">
        <%= f.label :unfeasibility_explanation, t("valuation.budget_investments.edit.feasible_explanation_html") %>
        <%= f.text_area :unfeasibility_explanation, label: false, rows: 3 %>
      </div>
    </div>

  </div>

  <div id="feasible_fields">

    <div class="row">
      <div class="small-12 medium-6 column">
        <%= f.label :price, "#{t('valuation.budget_investments.edit.price_html', currency: @budget.currency_symbol)}" %>
        <%= f.number_field :price, label: false, max: 1000000000000000 %>
      </div>

      <div class="small-12 medium-6 column end">
        <%= f.label :price_first_year, "#{t('valuation.budget_investments.edit.price_first_year_html', currency:  @budget.currency_symbol)}" %>
        <%= f.number_field :price_first_year, label: false, max: 1000000000000000 %>
      </div>
    </div>

    <div class="row">
      <div class="small-12 column">
        <%= f.label :price_explanation, t("valuation.budget_investments.edit.price_explanation_html") %>
        <%= f.text_area :price_explanation, label: false, rows: 3 %>
      </div>
    </div>

    <div class="row">
      <div class="small-12 medium-6 column">
        <%= f.label :duration, t("valuation.budget_investments.edit.duration_html") %>
        <%= f.text_field :duration, label: false %>
      </div>
    </div>

  </div>

  <div class="row">
    <div class="small-12 medium-8 column">
      <%= f.label :valuation_finished do %>
        <%= f.check_box :valuation_finished,
            title: t('valuation.budget_investments.edit.valuation_finished'),
            label: false, id: 'js-investment-report-alert',
            "data-alert": t("valuation.budget_investments.edit.valuation_finished_alert"),
            "data-not-feasible-alert": t("valuation.budget_investments.edit.not_feasible_alert") %>
        <span class="checkbox"><%= t("valuation.budget_investments.edit.valuation_finished") %></span>
      <% end %>
    </div>
  </div>

  <div class="row">
    <div class="small-12 column">
      <%= f.label :internal_comments, t("valuation.budget_investments.edit.internal_comments_html") %>
      <%= f.text_area :internal_comments, label: false, rows: 3 %>
    </div>
  </div>

  <div class="row">
    <div class="actions small-12 medium-4 column">
      <%= f.submit(class: "button expanded large", value: t("valuation.budget_investments.edit.save")) %>
    </div>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.17321944479336768, 'fraction_numerical': 0.015827157392287402, 'mean_word_length': 3.151199165797706, 'pattern_counts': {'":': 2, '<': 185, '<?xml version=': 0, '>': 185, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '5320152', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2608, 'n_words': 466}