<commit_before>{% extends "base.html" %}

{# Load the tag library #}
{% load bootstrap3 %}

{# Load CSS and JavaScript #}
{% bootstrap_css %}
{% bootstrap_javascript %}

{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}

{% block title %} {{ user.username }}{% endblock %}

{% block nav-profile %}<a href="#" class="nav-active">Profile</a>{% endblock %}

{% block content %}


{% if next %}
    {% if user.is_authenticated %}
    <p>Your account doesn't have access to this page. To proceed,
    please login with an account that has access.</p>
    {% else %}
    <p>Please login to see this page.</p>
    {% endif %}
{% endif %}

<div class="container container-full">
    <div class="row">
        <h1>Profile</h1>
        <div class="card-group">
            <div class="card swiper-card profile-card">
                {% bootstrap_icon "user" extra_classes="profile-icon" %}
                <h1>{{ user.username }}<a href="#" class="small-edit-profile" data-toggle="modal" data-target="#myModal"> {% bootstrap_icon "pencil" %}</a></h1>
                <p>Good to see you, {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}!</p>
                <div class="card-body text-right">
                    <h4>First Name:  {% if user.first_name %}{{ user.first_name }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Last Name: {% if user.last_name %}{{ user.last_name }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Email: {% if user.email %}{{ user.email }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Address: {% if user.profile.address %}{{ user.profile.address }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                </div>
            </div>
        </div>
    </div>
            <!-- ADD LATER <h3>Location: {% if user.current_location_x and user.current_location_y%}{{ user.current_location_x }}, {{ user.current_location_y }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h3> -->
        </div>
        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h3>Edit {{ user.username }}</h3>
                    </div>
                	<form id="update-user-form" action="/swiper/update-profile/" method="post" role="form" style="display: block;">
                        {% csrf_token %}
                        <div class="modal-body">
                            <div class="input-group input-group-lg">
                                <span class="input-group-addon" id="sizing-addon1">Email</span>
                                <input type="text" name="email" class="form-control" placeholder="<EMAIL>" aria-label="Username" aria-describedby="sizing-addon1" value="{% if user.email %}{{ user.email }}{% endif %}">
                            </div>
                            <br><commit_msg>add receive emails to profile page<commit_after>{% extends "base.html" %}

{# Load the tag library #}
{% load bootstrap3 %}

{# Load CSS and JavaScript #}
{% bootstrap_css %}
{% bootstrap_javascript %}

{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}

{% block title %} {{ user.username }}{% endblock %}

{% block nav-profile %}<a href="#" class="nav-active">Profile</a>{% endblock %}

{% block content %}


{% if next %}
    {% if user.is_authenticated %}
    <p>Your account doesn't have access to this page. To proceed,
    please login with an account that has access.</p>
    {% else %}
    <p>Please login to see this page.</p>
    {% endif %}
{% endif %}

<div class="container container-full">
    <div class="row">
        <h1>Profile</h1>
        <div class="card-group">
            <div class="card swiper-card profile-card">
                {% bootstrap_icon "user" extra_classes="profile-icon" %}
                <h1>{{ user.username }}<a href="#" class="small-edit-profile" data-toggle="modal" data-target="#myModal"> {% bootstrap_icon "pencil" %}</a></h1>
                <p>Good to see you, {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}!</p>
                <div class="card-body text-right">
                    <h4>First Name:  {% if user.first_name %}{{ user.first_name }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Last Name: {% if user.last_name %}{{ user.last_name }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Email: {% if user.email %}{{ user.email }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Address: {% if user.profile.address %}{{ user.profile.address }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h4>
                    <h4>Receive Emails?: {{ user.profile.receive_emails }}</h4>
                </div>
            </div>
        </div>
    </div>
            <!-- ADD LATER <h3>Location: {% if user.current_location_x and user.current_location_y%}{{ user.current_location_x }}, {{ user.current_location_y }}{% else %}<a href="#" data-toggle="modal" data-target="#myModal">Add me!</a>{% endif %}</h3> -->
        </div>
        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h3>Edit {{ user.username }}</h3>
                    </div>
                	<form id="update-user-form" action="/swiper/update-profile/" method="post" role="form" style="display: block;">
                        {% csrf_token %}
                        <div class="modal-body">
                            <div class="input-group input-group-lg">
                                <span class="input-group-addon" id="sizing-addon1">Email</span>
                                <input type="text" name="email" class="form-control" placeholder="<EMAIL>" aria-label="Username" aria-describedby="sizing-addon1" value="{% if user.email %}{{ user.email }}{% endif %}">
                            </div>
                            <br>
{'fraction_non_alphanumeric': 0.19260838663823737, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 2.3761996161228405, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '2204284', 'n_tokens_mistral': 2268, 'n_tokens_neox': 2086, 'n_words': 468}