<commit_before><%= form_tag expert_judgement.instance_save_efforts_path(@expert_judgement_instance) do %>
  <table class="table">
    <tr>
      <th class="text_left">Type de valeurs</th>
      <th class="text_left">Description</th>
      <th class="text_left">Entrées</th>
      <th class="text_left">Sorties</th>
      <th class="text_left">Commentaires</th>
      <th class="text_left">Traçabilité</th>

    </tr>
    <tr>
      <th></th>
      <th></th>
      <th class="text_left">L / M / H</th>
      <th class="text_left">L / M / H</th>
      <th></th>
      <th></th>
    </tr>
    <% @expert_judgement_attributes.each do |eja| %>

      <% ie = ExpertJudgement::InstanceEstimate.where( pe_attribute_id: eja.id,
                                                       expert_judgement_instance_id: @expert_judgement_instance.id,
                                                       module_project_id: current_module_project.id,
                                                       pbs_project_element_id: current_component.id).first %>

      <% ev = EstimationValue.where(:pe_attribute_id => eja.id,
                                    :module_project_id => current_module_project.previous.first.id,
                                    :in_out => "output").first %>

      <tr>
        <td>
          <span class="pull-left">
            <%= eja.name %>
          </span>
        </td>

        <td>
          <span class="pull-left">
            <%= link_to ie.description.blank? ? '------' : ie.description, "#", title: ie.description, :"data-toggle" => "modal", :"data-target" => "#description#{ie.id}", :"data-backdrop" => "static"  %>
          </span>
        </td>
        <div class="modal fade" id="description<%= ie.id %>" tabindex="-1" role="dialog" aria-labelledby="description_label<%= ie.id %>" aria-hidden="true">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <h4 class="modal-title" id="description_label<%= ie.id %>">
                  <b>
                    <%= eja.name %>
                  </b>
                </h4>
              </div>
              <div class="modal-body">
                <%= text_area_tag "description[#{eja.id}]", ie.description, class: "attribute_note_area" %>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >Fermer</button>
                <button type="submit" class="btn btn-default">Sauvegarder</button>
              </div>
            </div>
          </div>
        </div>

        <td>
          <span class="pull-left">

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][low][input]", ie.convert_effort("low", eja, ev, component), class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

            <%= text_field_tag "values[#{eja.id}][most_likely][input]", ie.convert_effort("most_likely", eja, ev, component), class: "input-small" %>
            <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][high][input]", ie.convert_effort("high", eja, ev, component), class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

          </span>
        </td>
        <td>
          <span class="pull-left">

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][low][output]", ie.low_output, class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

            <%= text_field_tag "values[#{eja.id}][most_likely][output]", ie.most_likely_output, class: "input-small" %>
            <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][high][output]", ie.high_output, class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>
<commit_msg>bug entree wbs<commit_after><%= form_tag expert_judgement.instance_save_efforts_path(@expert_judgement_instance) do %>
  <table class="table">
    <tr>
      <th class="text_left">Type de valeurs</th>
      <th class="text_left">Description</th>
      <th class="text_left">Entrées</th>
      <th class="text_left">Sorties</th>
      <th class="text_left">Commentaires</th>
      <th class="text_left">Traçabilité</th>

    </tr>
    <tr>
      <th></th>
      <th></th>
      <th class="text_left">L / M / H</th>
      <th class="text_left">L / M / H</th>
      <th></th>
      <th></th>
    </tr>
    <% @expert_judgement_attributes.each do |eja| %>

      <% ie = ExpertJudgement::InstanceEstimate.where( pe_attribute_id: eja.id,
                                                       expert_judgement_instance_id: @expert_judgement_instance.id,
                                                       module_project_id: current_module_project.id,
                                                       pbs_project_element_id: current_component.id).first %>

      <% ev = EstimationValue.where(:pe_attribute_id => eja.id,
                                    :module_project_id => current_module_project.previous.first.id,
                                    :in_out => "output").first %>

      <tr>
        <td>
          <span class="pull-left">
            <%= eja.name %>
          </span>
        </td>

        <td>
          <span class="pull-left">
            <%= link_to ie.description.blank? ? '------' : ie.description, "#", title: ie.description, :"data-toggle" => "modal", :"data-target" => "#description#{ie.id}", :"data-backdrop" => "static"  %>
          </span>
        </td>
        <div class="modal fade" id="description<%= ie.id %>" tabindex="-1" role="dialog" aria-labelledby="description_label<%= ie.id %>" aria-hidden="true">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <h4 class="modal-title" id="description_label<%= ie.id %>">
                  <b>
                    <%= eja.name %>
                  </b>
                </h4>
              </div>
              <div class="modal-body">
                <%= text_area_tag "description[#{eja.id}]", ie.description, class: "attribute_note_area" %>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >Fermer</button>
                <button type="submit" class="btn btn-default">Sauvegarder</button>
              </div>
            </div>
          </div>
        </div>

        <td>
          <span class="pull-left">

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][low][input]", ie.convert_effort("low", eja, ev, current_component), class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

            <%= text_field_tag "values[#{eja.id}][most_likely][input]", ie.convert_effort("most_likely", eja, ev, current_component), class: "input-small" %>
            <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][high][input]", ie.convert_effort("high", eja, ev, current_component), class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

          </span>
        </td>
        <td>
          <span class="pull-left">

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][low][output]", ie.low_output, class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

            <%= text_field_tag "values[#{eja.id}][most_likely][output]", ie.most_likely_output, class: "input-small" %>
            <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>

            <% if @expert_judgement_instance.three_points_estimation? %>
              <%= text_field_tag "values[#{eja.id}][high][output]", ie.high_output, class: "input-small" %>
              <%= @expert_judgement_instance.send("#{eja.alias}_unit") %>
            <% end %>

{'fraction_non_alphanumeric': 0.17104207268141694, 'fraction_numerical': 0.0006878367534105239, 'mean_word_length': 2.0365471632439958, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3144756', 'n_tokens_mistral': 2857, 'n_tokens_neox': 2666, 'n_words': 388}