<commit_before><div class="prettyform">
  <div class="container" id="new-user">
    <div class="box maxwidth-box">
      <h2 class="fixed-title center">Sign Up</h2>

  
        <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: {class: 'center'}) do |f| %>
        <%= devise_error_messages! %>

        <div class="center">
        <%= f.text_field :first_name, autofocus: true, class: "center-form form-control", placeholder: "First Name" %>
        </div>

        <div class="center">
        <%= f.text_field :last_name, class: "center-form form-control", placeholder: "Last Name" %>
        </div>

        <div class="center">
        <%= f.email_field :email, class: "center-form form-control", placeholder: "Email"  %>
        </div>

        <div class="styled-select">
          <%= f.label :org_id, 'Organization' %>
          <%= f.collection_select(:org_id, Qset.where(parent_id: nil).order(:name), :id, :name) %>
        </div>

        <div class="center">
        <%= f.password_field :password, autocomplete: "off", class: "center-form form-control", placeholder: "Password (minimum 8 characters)"  %>
        </div>

        <div class="center"> 
        <%= f.password_field :password_confirmation, autocomplete: "off", class: "center-form form-control", placeholder: "Confirm password" %>
        </div>
<commit_msg>Added logic in signup view for single org signup<commit_after><div class="prettyform">
  <div class="container" id="new-user">
    <div class="box maxwidth-box">
      <h2 class="fixed-title center">Sign Up</h2>

  
        <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: {class: 'center'}) do |f| %>
        <%= devise_error_messages! %>

        <div class="center">
        <%= f.text_field :first_name, autofocus: true, class: "center-form form-control", placeholder: "First Name" %>
        </div>

        <div class="center">
        <%= f.text_field :last_name, class: "center-form form-control", placeholder: "Last Name" %>
        </div>

        <div class="center">
        <%= f.email_field :email, class: "center-form form-control", placeholder: "Email"  %>
        </div>

        <div class="styled-select">
          <%= f.label :org_id, 'Organization' %>
          <% if not params.nil? and params[:org_id].present? and not Qset.where(parent_id: nil, id:params[:org_id]).nil? %>
              <%= f.collection_select(:org_id, Qset.where(id:params[:org_id]), :id, :name) %>
          <% else %>
              <%= f.collection_select(:org_id, Qset.where(parent_id: nil).order(:name), :id, :name) %>
          <% end %>

        </div>

        <div class="center">
        <%= f.password_field :password, autocomplete: "off", class: "center-form form-control", placeholder: "Password (minimum 8 characters)"  %>
        </div>

        <div class="center"> 
        <%= f.password_field :password_confirmation, autocomplete: "off", class: "center-form form-control", placeholder: "Confirm password" %>
        </div>

{'fraction_non_alphanumeric': 0.17307060755336617, 'fraction_numerical': 0.0019704433497536944, 'mean_word_length': 2.9558441558441557, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '6428481', 'n_tokens_mistral': 1010, 'n_tokens_neox': 940, 'n_words': 216}