<commit_before><%def name="form(scenario='login')">
<% login_types = h.allowed_login_types() %>

<div class="sso_form">
    <div class="sso_form_inhibitor">
        <p>${_(u'Alternatively you can log in using various external accounts. Please be aware that the login via external providers may cause security and privacy related risks.')}</p>
        <a class="button highlight" href="#" onclick="$('.sso_form_inhibitor').hide(); return false;">${_('I understand the risk')}</a>
    </div>

    %if 'openid' in login_types:
    <% c.openid_scenario = scenario %>
    <%include file="/openid/form.html" />
    %elif 'facebook' in login_types:
    <form id="facebook_login_form" action="${h.velruse_url('/login/facebook')}" method="post">
        <input type="image" src="/velruse/active_404.png" value="${_('Login with Facebook')}" />
    </form>
    %endif
</div>
</%def><commit_msg>dont show sso form if sso is not available<commit_after><%def name="form(scenario='login')">
<% login_types = h.allowed_login_types() %>

%if 'openid' in login_types or 'facebook' in login_types:
<div class="sso_form">
    <div class="sso_form_inhibitor">
        <p>${_(u'Alternatively you can log in using various external accounts. Please be aware that the login via external providers may cause security and privacy related risks.')}</p>
        <a class="button highlight" href="#" onclick="$('.sso_form_inhibitor').hide(); return false;">${_('I understand the risk')}</a>
    </div>

    %if 'openid' in login_types:
    <% c.openid_scenario = scenario %>
    <%include file="/openid/form.html" />
    %elif 'facebook' in login_types:
    <form id="facebook_login_form" action="${h.velruse_url('/login/facebook')}" method="post">
        <input type="image" src="/velruse/active_404.png" value="${_('Login with Facebook')}" />
    </form>
    %endif
</div>
%endif
</%def>
{'fraction_non_alphanumeric': 0.17580645161290323, 'fraction_numerical': 0.0032258064516129032, 'mean_word_length': 4.441520467836257, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3082060', 'n_tokens_mistral': 610, 'n_tokens_neox': 589, 'n_words': 156}