<commit_before>{% load i18n %} 
{% load bootstrap3 %}
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>NAMUBUFFERI by Tietskarijengi</title>

    <!-- Bootstrap Core CSS -->
    {% bootstrap_css %}
    
    <!-- Custom CSS -->
    {% load staticfiles %}
    <link href="{% static "namubufferiapp/style.css" %}" rel="stylesheet">
    
    <!-- Custom Fonts -->
    <link href='https://fonts.googleapis.com/css?family=Condiment' rel='stylesheet' type='text/css'>


    <!-- HTML5 Shma and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body id="page-top">
    <!-- 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>
            <h4 class="modal-title" id="myModalLabel">Lisää rahaa Namupankkiin</h4>
          </div>
          <div class="modal-body">
            <form action="/deposit/123/" method="post" class="form-signin">
                {% csrf_token %}
                {% bootstrap_form money_form %}
                {% buttons %}
                <button type="submit" class="btn btn-default btn-lg">
                    Add MONNNEYYY!
                </button>
                {% endbuttons %}
            </form>
          </div>
        </div>
      </div>
    </div>

   <!-- Auth Modal -->
    <div class="modal fade" id="authModal" 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>
            <h4 class="modal-title" id="myModalLabel">Rekisteröidy</h4>
          </div>
          <div class="modal-body">
            <form action="/register/" method="post" class="form-signin">
                {% csrf_token %}
                {% bootstrap_form register_form %}
                {% buttons %}
                <button type="submit" class="btn btn-default btn-lg">
                Rekisteröidy
                </button>
                {% endbuttons %}
            </form>
          </div>
        </div>
      </div>
    </div>

    <div class="container text-center">
        <h1>Namupankki</h1><h4> by Tietskarijengi</h4>
    </div>

    <hr>

    <!-- User Section -->
    {% if user.is_authenticated %}
    <div class="container text-center user-info">
        {% if money_message %}
        <div class="row">
            <div class="alert alert-success col-xs-4 col-xs-offset-4 fade in">
                <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                Lisäsit <strong>{{ money_message }}</strong>€
            </div>
        </div>
        {% endif %}
        <h4>Käyttäjä: {{ user }}</h4>
        <h4>Saldo: {{ user.userprofile.balance }}€</h4>
    </div>

    <section id="user" class="container content-section text-center">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <a href="/deposit/123" type="button" class="btn btn-default btn-lg" data-toggle="modal" data-target="#myModal">
                    <p class="glyphicon glyphicon-plus" aria-hidden="true"></p> <p>Lisää rahaa</p>
                </a>
                <a href="/logout" type="button" class="btn btn-default btn-lg">
                    <p class="glyphicon glyphicon-log-out" aria-hidden="true"></p> <p>Kirjaudu ulos</p>
                </a>
            </div>
        </div>
    {% endif %}

        <div class="row">
                {% if buy_message %}
                <div class="row">
                    <div class="alert alert-success col-xs-4 col-xs-offset-4 fade in">
                        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                        Ostit <strong>{{ buy_message }}</strong>->
                    </div>
                </div>
                {% endif %}
                {% if not user.is_authenticated %}
                {% if not register_message %}
            <div class="col-lg-4 col-lg-offset-2">
                {% else %}
                <div class="col-lg-4 col-lg-offset-4">
                {% endif %}
                    <h3>Kirjaudu sisään.</h3>
                    {% if register_message %}
                        <div class="alert alert-success fade in row">
                            <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                            <strong>Rekisteröityminen onnistui.</strong> {{ register_message }}
                        </div>
                    {% endif %}
                    <div class="toggle-login" {% if request.get_full_path = "/" %}{% endif %}>
                        <form action="/login/#user" method="post" class="form-signin">
                            {% csrf_token %}

                            <input class="form-control" id="id_username" maxlength="254" name="username" placeholder="Käyttäjätunnus" required="required" title="" type="username">
                            <input class="form-control" id="id_password" name="password" placeholder="<PASSWORD>" required="required" title="" type="password">

                            
                            {% buttons %}
                            <button type="submit" class="btn btn-lg btn-default btn-block">
                            Kirjaudu sisään
                            </button>
                            {% endbuttons %}
                        </form>
                        {% if not register_message %}<commit_msg>Edit register<commit_after>{% load i18n %} 
{% load bootstrap3 %}
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>NAMUBUFFERI by Tietskarijengi</title>

    <!-- Bootstrap Core CSS -->
    {% bootstrap_css %}
    
    <!-- Custom CSS -->
    {% load staticfiles %}
    <link href="{% static "namubufferiapp/style.css" %}" rel="stylesheet">
    
    <!-- Custom Fonts -->
    <link href='https://fonts.googleapis.com/css?family=Condiment' rel='stylesheet' type='text/css'>


    <!-- HTML5 Shma and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body id="page-top">
    <!-- 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>
            <h4 class="modal-title" id="myModalLabel">Lisää rahaa Namupankkiin</h4>
          </div>
          <div class="modal-body">
            <form action="/deposit/123/" method="post" class="form-signin">
                {% csrf_token %}
                {% bootstrap_form money_form %}
                {% buttons %}
                <button type="submit" class="btn btn-default btn-lg">
                    Add MONNNEYYY!
                </button>
                {% endbuttons %}
            </form>
          </div>
        </div>
      </div>
    </div>

   <!-- Auth Modal -->
    <div class="modal fade" id="authModal" 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>
            <h4 class="modal-title" id="myModalLabel">Rekisteröidy</h4>
          </div>
          <div class="modal-body">
            <form action="/register/" method="post" class="form-signin">
                {% csrf_token %}
                {% bootstrap_form register_form %}
                {% buttons %}
                <button type="submit" class="btn btn-default btn-lg">
                Rekisteröidy
                </button>
                {% endbuttons %}
            </form>
          </div>
        </div>
      </div>
    </div>

    <div class="container text-center">
        <h1>Namupankki</h1><h4> by Tietskarijengi</h4>
    </div>

    <hr>

    <!-- User Section -->
    {% if user.is_authenticated %}
    <div class="container text-center user-info">
        {% if money_message %}
        <div class="row">
            <div class="alert alert-success col-xs-4 col-xs-offset-4 fade in">
                <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                Lisäsit <strong>{{ money_message }}</strong>€
            </div>
        </div>
        {% endif %}
        <h4>Käyttäjä: {{ user }}</h4>
        <h4>Saldo: {{ user.userprofile.balance }}€</h4>
    </div>

    <section id="user" class="container content-section text-center">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <a href="/deposit/123" type="button" class="btn btn-default btn-lg" data-toggle="modal" data-target="#myModal">
                    <p class="glyphicon glyphicon-plus" aria-hidden="true"></p> <p>Lisää rahaa</p>
                </a>
                <a href="/logout" type="button" class="btn btn-default btn-lg">
                    <p class="glyphicon glyphicon-log-out" aria-hidden="true"></p> <p>Kirjaudu ulos</p>
                </a>
            </div>
        </div>
    {% endif %}

        <div class="row">
                {% if buy_message %}
                <div class="row">
                    <div class="alert alert-success col-xs-4 col-xs-offset-4 fade in">
                        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                        Ostit <strong>{{ buy_message }}</strong>->
                    </div>
                </div>
                {% endif %}
                {% if not user.is_authenticated %}
                {% if not register_message %}
            <div class="col-sm-4 col-sm-offset-4 col-xs-12 col-xs-offset-0 text-center">
                {% else %}
                <div class="col-sm-4 col-sm-offset-4 col-xs-12 col-xs-offset-0 text-center">
                {% endif %}
                    <h3>Kirjaudu sisään.</h3>
                    {% if register_message %}
                        <div class="alert alert-success fade in row">
                            <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                            <strong>Rekisteröityminen onnistui.</strong> {{ register_message }}
                        </div>
                    {% endif %}
                    <div class="toggle-login" {% if request.get_full_path = "/" %}{% endif %}>
                        <form action="/login/#user" method="post" class="form-signin">
                            {% csrf_token %}

                            <input class="form-control" id="id_username" maxlength="254" name="username" placeholder="Käyttäjätunnus" required="required" title="" type="username">
                            <input class="form-control" id="id_password" name="password" placeholder="<PASSWORD>" required="required" title="" type="password">

                            
                            {% buttons %}
                            <button type="submit" class="btn btn-lg btn-default btn-block">
                            Kirjaudu sisään
                            </button>
                            {% endbuttons %}
                        </form>
                        {% if not register_message %}
{'fraction_non_alphanumeric': 0.16596736596736597, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 1.7502136752136752, 'pattern_counts': {'":': 0, '<': 269, '<?xml version=': 0, '>': 271, 'https://': 6, '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': '7314078', 'n_tokens_mistral': 3994, 'n_tokens_neox': 3647, 'n_words': 747}