<commit_before><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="model.Profiles"%>
<%@page import="model.User"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="templates/header.jsp" />
<% User user = (User) request.getAttribute("user");
   Profiles profile = (Profiles) request.getAttribute("profile"); %>

<div class="page-header">
    <h1>MyProfile</h1>
</div>

<div class="panel panel-default">
    <div class="panel-body row" id="profile">
        <div class="col-xs-4 col-sm-2 text-center">
            <span class="thumbnail">
                <img src="${SITE_URL}/asset/img/avatar-img/<%= profile.getUrl_image() %>" class="img-responsive">
            </span>
        </div>
        <div class="col-xs-8 col-sm-8" id="description">
            <h3><%= user.getUsername() %></h3>
            <p><%= profile.getFirst_name() %> <%= profile.getLast_name() %></p>
            <p><%= user.getEmail() %></p>
            <a href="${SITE_URL}/ViewFollow/?id=<%= user.getUsername() %>">
                <h4><%= request.getAttribute("countFollowing") %></h4>
                <small>Following</small>
            </a>
            <a href="${SITE_URL}/ViewFollow/?id=<%= user.getUsername() %>">
                <h4><%= request.getAttribute("countFollower") %></h4>
                <small>Follower</small>
            </a> <br>
            <div class="panel-body tag">
                <c:forEach var="tag" items="${requestScope.allTag}">
                    <a href="${SITE_URL}/Gallery/?tag=${tag.getTag_id()}">
                        <span class="label label-info"><span class="glyphicon glyphicon-tag" aria-hidden="true"></span> ${tag.getTag_name()}</span>
                    </a>
                </c:forEach>
            </div>

        </div>
        <div class="col-xs-12 col-sm-2 text-right">
            <form
                action="${SITE_URL}/Follow/?id=${sessionScope.user.getUsername()}&ownid=<%= user.getUsername() %>&at=profile"
                method="POST" >
                <button
                    class='btn <%= request.getAttribute("btn-follow") %> btn-sm <%= request.getAttribute("btn-show") %>'
                    type="submit">
                        <%= request.getAttribute("btn-follow-text") %>
                    </button>
            </form>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="panel-default panel">
            <div class="panel-heading">Overview</div>
            <div class="panel-body">
                <canvas id="myChart" height="100"></canvas>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-body">
                <p><strong>Income</strong> <small>Last 30 days</small></p>
                <h3>${requestScope.coin} <small>coin</small></h3>
            </div><commit_msg>Added label level account and valid date<commit_after><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="model.Profiles"%>
<%@page import="model.User"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="templates/header.jsp" />
<% User user = (User) request.getAttribute("user");
   Profiles profile = (Profiles) request.getAttribute("profile"); %>

<div class="page-header">
    <h1>MyProfile</h1>
</div>

<div class="panel panel-default">
    <div class="panel-body row" id="profile">
        <div class="col-xs-4 col-sm-2 text-center">
            <span class="thumbnail">
                <img src="${SITE_URL}/asset/img/avatar-img/<%= profile.getUrl_image() %>" class="img-responsive">
            </span>
        </div>
        <div class="col-xs-8 col-sm-8" id="description"
            <h3><%= user.getUsername() %></h3>
            <p><%= profile.getFirst_name() %> <%= profile.getLast_name() %></p>
            <p><%= user.getEmail() %></p>
            <a href="${SITE_URL}/ViewFollow/?id=<%= user.getUsername() %>">
                <h4><%= request.getAttribute("countFollowing") %></h4>
                <small>Following</small>
            </a>
            <a href="${SITE_URL}/ViewFollow/?id=<%= user.getUsername() %>">
                <h4><%= request.getAttribute("countFollower") %></h4>
                <small>Follower</small>
            </a>
            <p>
                <span class="label label-default">Standard creator</span>
                <span class="label label-warning">Premium creator</span>
                <p>Valid until: 99 Dec 9999</p>
            </p>
            <div class="panel-body tag">
                <c:forEach var="tag" items="${requestScope.allTag}">
                    <a href="${SITE_URL}/Gallery/?tag=${tag.getTag_id()}">
                        <span class="label label-info"><span class="glyphicon glyphicon-tag" aria-hidden="true"></span> ${tag.getTag_name()}</span>
                    </a>
                </c:forEach>
            </div>

        </div>
        <div class="col-xs-12 col-sm-2 text-right">
            <form
                action="${SITE_URL}/Follow/?id=${sessionScope.user.getUsername()}&ownid=<%= user.getUsername() %>&at=profile"
                method="POST" >
                <button
                    class='btn <%= request.getAttribute("btn-follow") %> btn-sm <%= request.getAttribute("btn-show") %>'
                    type="submit">
                        <%= request.getAttribute("btn-follow-text") %>
                    </button>
            </form>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="panel-default panel hidden-xs">
            <div class="panel-heading">Overview</div>
            <div class="panel-body">
                <canvas id="myChart" height="70"></canvas>
            </div>
        </div>

        <div class="alert alert-warning visible-xs-block" role="alert">
            <b>Oops!</b> This screen is too small to display Overview chart.
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-body">
                <p><strong>Income</strong> <small>Last 30 days</small></p>
                <h3>${requestScope.coin} <small>coin</small></h3>
            </div>
{'fraction_non_alphanumeric': 0.1966336322164543, 'fraction_numerical': 0.009281107440616642, 'mean_word_length': 2.053794428434198, 'pattern_counts': {'":': 0, '<': 206, '<?xml version=': 0, '>': 205, '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': '570814', 'n_tokens_mistral': 2052, 'n_tokens_neox': 1929, 'n_words': 336}