<commit_before><% jammit_css :login %>
<% @body_classes << "modal" if @body_classes %>
<% hide_self_reg_banner ||= false %>
<% extend Api::V1::Account %>
<% js_bundle :login %>
<% login_handle_name = @domain_root_account.login_handle_name rescue AccountAuthorizationConfig.default_login_handle_name %>
<div id="modal-box" class="login-box">
    <div id="modal-box-inner">
    <h1>HotChalk Ember</h1>
    <% if @is_delegated %>
      <div id="login_form">
        <% if flash[:delegated_message] %>
          <div class="error_box errorBox" style="display: block; position:relative; top: auto; left: auto; max-width: 400px">
            <div class="error_text"><%= flash[:delegated_message] %></div>
          </div>
        <% end %>
        <% 
           login_message = t('default_login_message', "Log in at your institution") 
           if @domain_root_account && @domain_root_account.display_name
             login_message = t('login_at_account', "Log in at %{school_name}", :school_name => @domain_root_account.display_name)
           end
        %>
        <a href="<%= login_path %>" style="font-size: 1.3em;" class="btn"><%= login_message %></a>
      </div>
    <% else %>
      <%= form_for :prelogin, :url => resolve_login_path, :html => {:id => "resolve_login_form", :style => (@is_prelogin ? "" : "display:none")} do |f| %>
        <h2 class="ui-helper-hidden-accessible"><%= t('log_in', 'Log In') %></h2>
        <% login_inner_dialog = yield :login_inner_dialog %>
        <%= login_inner_dialog if login_inner_dialog && !login_inner_dialog.strip.empty? %>
        <input type="hidden" name="redirect_to_ssl" value="1"/>
        <div>
          <span class=" field-with-fancyplaceholder"><%= f.label :unique_id, :en => 'Primary Email Address' %><%= f.text_field :unique_id, :class => "text", :value => params[:prelogin].try(:[], :unique_id) %></span>
          <span id="external_login" class=" field-with-fancyplaceholder"><%= t('click_below_to_login', "Click below to login:")%><br /><a id="external_login_link" href="#" /></span>

          <!-- crazy IE 8-9 workaround!, if you take this input type=submit out, you cannot just submit the form by hitting enter in ie8-9 -->
          <input type="submit" style="position: absolute; height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" tabindex="-1" />
          <button type="submit" class="btn btn-primary" style="margin-top: 7px;"><%= t('submit', 'Submit') %></button>
        </div>
        <div>
          <div class="login-options">
            <% url = "https://embersupport.zendesk.com/hc/en-us/articles/202436189" %>
            <%= link_to t('dont_know_email', "I don't know my email address"), url, :class => (url != '#' ? "not_external" : "forgot_password_link"), :id => "login_forgot_email", :target => "_blank" %>
          </div>
        </div>
      <% end %><commit_msg>CNS-778: Improve SSO process for users<commit_after><% jammit_css :login %>
<% @body_classes << "modal" if @body_classes %>
<% hide_self_reg_banner ||= false %>
<% extend Api::V1::Account %>
<% js_bundle :login %>
<% login_handle_name = @domain_root_account.login_handle_name rescue AccountAuthorizationConfig.default_login_handle_name %>
<div id="modal-box" class="login-box">
    <div id="modal-box-inner">
    <h1>HotChalk Ember</h1>
    <% if @is_delegated %>
      <div id="login_form">
        <% if flash[:delegated_message] %>
          <div class="error_box errorBox" style="display: block; position:relative; top: auto; left: auto; max-width: 400px">
            <div class="error_text"><%= flash[:delegated_message] %></div>
          </div>
        <% end %>
        <% 
           login_message = t('default_login_message', "Log in at your institution") 
           if @domain_root_account && @domain_root_account.display_name
             login_message = t('login_at_account', "Log in at %{school_name}", :school_name => @domain_root_account.display_name)
           end
        %>
        <a href="<%= login_path %>" style="font-size: 1.3em;" class="btn"><%= login_message %></a>
      </div>
    <% else %>
      <%= form_for :prelogin, :url => resolve_login_path, :html => {:id => "resolve_login_form", :style => (@is_prelogin ? "" : "display:none")} do |f| %>
        <h2 class="ui-helper-hidden-accessible"><%= t('log_in', 'Log In') %></h2>
        <% login_inner_dialog = yield :login_inner_dialog %>
        <%= login_inner_dialog if login_inner_dialog && !login_inner_dialog.strip.empty? %>
        <input type="hidden" name="redirect_to_ssl" value="1"/>
        <div>
          <span class=" field-with-fancyplaceholder"><%= f.label :unique_id, :en => 'Primary Email Address' %><%= f.text_field :unique_id, :class => "text", :value => params[:prelogin].try(:[], :unique_id) %></span>
          <span id="external_login" class=" field-with-fancyplaceholder"><%= t('click_below_to_login', "Click below to login:") %><br /><a id="external_login_link" href="#"></a></span>

          <!-- crazy IE 8-9 workaround!, if you take this input type=submit out, you cannot just submit the form by hitting enter in ie8-9 -->
          <input type="submit" style="position: absolute; height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" tabindex="-1" />
          <button type="submit" class="btn btn-primary" style="margin-top: 7px;"><%= t('submit', 'Submit') %></button>
        </div>
        <div>
          <div class="login-options">
            <% url = "https://embersupport.zendesk.com/hc/en-us/articles/202436189" %>
            <%= link_to t('dont_know_email', "I don't know my email address"), url, :class => (url != '#' ? "not_external" : "forgot_password_link"), :id => "login_forgot_email", :target => "_blank" %>
          </div>
        </div>
      <% end %>
{'fraction_non_alphanumeric': 0.18269896193771626, 'fraction_numerical': 0.01055363321799308, 'mean_word_length': 3.4298850574712643, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 138, 'https://': 2, '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': '2740657', 'n_tokens_mistral': 1967, 'n_tokens_neox': 1853, 'n_words': 423}