<commit_before><%-- 
    Document   : index.jsp
    Created on : 28/05/2017, 01:18:36
    Author     : jeffersoncn
--%>

<%@page import="com.fatecpg.data.Alternativa"%>
<%@page import="com.fatecpg.data.Questao"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../../WEB-INF/jspfs/links.jspf" %>
        <title></title>
    </head>
    <body>
        <%@include file="../../WEB-INF/jspfs/menu.jspf" %>
        <div id="wrapper">
            <%@include file="../../WEB-INF/jspfs/menuLateral.jspf"%>
            <div id="page-wrapper" class="container">
                <div id="page-inner">
                    <div class="row">
                        <div class="col-md-12">
                            <h2 class="text-center">Painel do Administrador</h2>   
                            <h5 class="text-center">Bem vindo, Admnistrador. </h5>
                            <%
                                String mensagem = (String) userSession.getAttribute("mensagem");

                                if (mensagem != null) {
                            %>
                            <p><%=mensagem%></p>
                            <%
                                }

                                ArrayList<Questao> questoes = Questao.all();

                                for (Questao questao : questoes) {
                            %>
                            <p>
                                Questao: <%= questao.getTexto()%><br>
                            <ol>
                                <%
                                    for (Alternativa alternativa : questao.getAlternativas()) {
                                %>
                                <li>
                                    <%= alternativa.getTexto()%>
                                </li>
                                <%
                                    }
                                %>
                            </ol>
                            </p>
                            <%
                                }
                                userSession.removeAttribute("mensagem");
                            %>
                        </div>
                    </div>              
                </div>
            </div>     
        </div>
    </div>
</div>

<%@include file="../../WEB-INF/jspfs/footer.jspf" %>
<%@include file="../../WEB-INF/jspfs/scripts.jspf" %>
</body>
</html><commit_msg>Implantando modals na index do admin.<commit_after><%-- 
    Document   : index.jsp
    Created on : 28/05/2017, 01:18:36
    Author     : jeffersoncn
--%>

<%@page import="com.fatecpg.data.Alternativa"%>
<%@page import="com.fatecpg.data.Questao"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../../WEB-INF/jspfs/links.jspf" %>
        <title></title>
    </head>
    <body>
        <%@include file="../../WEB-INF/jspfs/menu.jspf" %>
        <div id="wrapper">
            <%@include file="../../WEB-INF/jspfs/menuLateral.jspf"%>
            <div id="page-wrapper" class="container">
                <div id="page-inner">
                    <div class="row">
                        <div class="col-md-12">
                            <h2 class="text-center">Painel do Administrador</h2>   
                            <h5 class="text-center">Bem vindo, Admnistrador. </h5>
                            <%
                                String mensagem = (String) userSession.getAttribute("mensagem");

                                if (mensagem != null) {
                            %>
                            <p><%=mensagem%></p>
                            <%
                                }

                                ArrayList<Questao> questoes = Questao.all();

                                for (Questao questao : questoes) {
                            %>
                            <p>
                                Questao: <%= questao.getTexto()%><br>
                            <ol>
                                <%
                                    for (Alternativa alternativa : questao.getAlternativas()) {
                                %>
                                <li>
                                    <%= alternativa.getTexto()%>
                                </li>
                                <%
                                    }
                                %>
                            </ol>
                            </p>
                            <%
                                }
                                userSession.removeAttribute("mensagem");
                            %>
                        </div>
                    </div>              
                </div>
            </div>     
        </div>
    </div>
</div>
<%@include file="../../WEB-INF/jspfs/modals.jspf" %>
<%@include file="../../WEB-INF/jspfs/footer.jspf" %>
<%@include file="../../WEB-INF/jspfs/scripts.jspf" %>
</body>
</html>
{'fraction_non_alphanumeric': 0.14369556985990156, 'fraction_numerical': 0.008330177962892843, 'mean_word_length': 0.8556375131717597, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 112, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7046381', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1347, 'n_words': 200}