<commit_before>{% extends "layout.html" %}
{% block title %}Login{% endblock %}

{% from "security/_macros.html" import render_field_with_errors, render_field %}
<!--{% include "security/_messages.html" %}-->
{% block body %}
<h2>Login</h2>
{# <form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
  {{ login_user_form.hidden_tag() }}
  {{ render_field_with_errors(login_user_form.email) }}
  {{ render_field_with_errors(login_user_form.password) }}
  {{ render_field_with_errors(login_user_form.remember) }}
  {{ render_field(login_user_form.next) }}
  {{ render_field(login_user_form.submit) }}
</form>
#}
{% macro social_login(provider_id, display_name) %}
  <form action="{{ url_for('social.login', provider_id=provider_id) }}" method="POST">
    <input type="submit" value="Login with {{ display_name }}" />
  </form>
{% endmacro %}

{{ social_login('facebook', 'Facebook' )}}
{{ social_login('google', 'Google' )}}
{% include "security/_menu.html" %}<commit_msg>kill flask-security messages, don't need 'em<commit_after>{% extends "layout.html" %}
{% block title %}Login{% endblock %}

{% from "security/_macros.html" import render_field_with_errors, render_field %}

{% block body %}
<h2>Login</h2>
{# <form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
  {{ login_user_form.hidden_tag() }}
  {{ render_field_with_errors(login_user_form.email) }}
  {{ render_field_with_errors(login_user_form.password) }}
  {{ render_field_with_errors(login_user_form.remember) }}
  {{ render_field(login_user_form.next) }}
  {{ render_field(login_user_form.submit) }}
</form>
#}
{% macro social_login(provider_id, display_name) %}
  <form action="{{ url_for('social.login', provider_id=provider_id) }}" method="POST">
    <input type="submit" value="Login with {{ display_name }}" />
  </form>
{% endmacro %}

{{ social_login('facebook', 'Facebook' )}}
{{ social_login('google', 'Google' )}}
{% include "security/_menu.html" %}
{'fraction_non_alphanumeric': 0.19112455874936965, 'fraction_numerical': 0.002017145738779627, 'mean_word_length': 6.630769230769231, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '5620828', 'n_tokens_mistral': 703, 'n_tokens_neox': 662, 'n_words': 103}