<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/templates/modelo.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
	<ui:define name="conteudo">
		<h:form id="formListagem"
			rendered="#{autenticacaoBean.controladorAcesso.permissaoAdministrador}">
			<p:panel header="Categorias - Listagem">
				<p:dataTable id="tabela" emptyMessage="Nenhum registro encontrado."
					paginator="true" rows="20" value="#{categoriaBean.categorias}"
					var="categoria" paginatorPosition="bottom" rowHover="true"
					rowExpandMode="true" widgetVar="categTable" multiViewState="true"
					filteredValue="#{categoriaBean.filteredCategorias}" reflow="true">
					<f:facet name="header">
						<div align="left">
							<p:commandButton value="Novo" icon="fa fa-file-o"
								oncomplete="PF('dialogo').show();"
								actionListener="#{categoriaBean.novo}"
								update="formCadastro:painel">
								<f:actionListener
									type="org.omnifaces.eventlistener.ResetInputAjaxActionListener" />
							</p:commandButton>
						</div>
						<div align="right">
							<p:outputLabel value="Pesquisar Campos: " />
							<p:inputText id="globalFilter"
								onkeyup="PF('categTable').filter()" placeholder="Faça uma busca"
								style="width: 150px" />
						</div>
					</f:facet>

					<p:column headerText="Categoria" sortBy="#{categoria.categoria}"
						filterBy="#{categoria.categoria}" filterMatchMode="contains"
						width="70%">
						<h:outputText value="#{categoria.categoria}" />
					</p:column>

					<p:column headerText="Opções" width="30%">
						<p:commandButton icon="fa fa-trash" title="Excluir"
							actionListener="#{categoriaBean.excluir}"
							update=":mensagem :formListagem:tabela">
							<p:confirm header="Confirmação"
								message="Deseja excluir a categoria?" />
							<f:attribute name="categoriaSelecionada" value="#{categoria}" />
						</p:commandButton>
						<p:commandButton icon="fa fa-pencil" title="Editar"
							actionListener="#{categoriaBean.editar}"
							update=":mensagem :formCadastro:painel"
							oncomplete="PF('dialogo').show();">
							<f:attribute name="categoriaSelecionada" value="#{categoria}" />
						</p:commandButton>
					</p:column>
				</p:dataTable>

				<p:confirmDialog global="true" hideEffect="fold" showEffect="clip"
					responsive="true">
					<div align="center">
						<p:commandButton value="Sim" type="button"
							styleClass="ui-confirmdialog-yes" icon="fa fa-check" />
						<p:commandButton value="Não" type="button"
							styleClass="ui-confirmdialog-no" icon="fa fa-times" />
					</div>
				</p:confirmDialog>
			</p:panel>
		</h:form>

		<p:dialog header="Cadastro" widgetVar="dialogo" maximizable="true"
			resizable="false" modal="true" draggable="false" responsive="true"
			showEffect="clip" hideEffect="fold">
			<h:form id="formCadastro">
				<p:tab id="tabCategoria" title="Categoria">
					<p:panel header="Categoria do Produto">
						<h:panelGrid id="painel" columns="1">
							<p:outputLabel for="categ" value="Categoria:" />
							<p:inputText id="categ" maxlength="20" title="Categoria"
								value="#{categoriaBean.categoria.categoria}" required="true"
								requiredMessage="Informe a descrição" style="width:350px;" />
						</h:panelGrid>
					</p:panel>
				</p:tab>
				<p:separator />
				<div align="left">
					<h:panelGrid columns="2">
						<p:commandButton value="Salvar" icon="fa fa-floppy-o"
							oncomplete="if (args &amp;&amp; !args.validationFailed) PF('dialogo').hide()"
							actionListener="#{categoriaBean.salvar}"
							update=":mensagem :formCadastro :formListagem" />
						<p:commandButton value="Fechar" icon="fa fa-times"
							oncomplete="PF('dialogo').hide();">
							<f:actionListener
								type="org.omnifaces.eventlistener.ResetInputAjaxActionListener" />
						</p:commandButton>
					</h:panelGrid>
				</div>
			</h:form>
		</p:dialog>
	</ui:define>
</ui:composition><commit_msg>Stage of development<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/templates/modelo.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
	<ui:define name="conteudo">
		<h:form id="formListagem"
			rendered="#{autenticacaoBean.controladorAcesso.permissaoAdministrador}">
			<p:panel header="Categorias - Listagem">
				<p:dataTable id="tabela" emptyMessage="Nenhum registro encontrado."
					paginator="true" rows="10" value="#{categoriaBean.categorias}"
					var="categoria" paginatorPosition="bottom"
					paginatorAlwaysVisible="false" rowHover="true" rowExpandMode="true"
					widgetVar="categTable" multiViewState="true"
					filteredValue="#{categoriaBean.filteredCategorias}" reflow="true">
					<f:facet name="header">
						<div align="left">
							<p:commandButton value="Novo" icon="fa fa-file-o"
								oncomplete="PF('dialogo').show();"
								actionListener="#{categoriaBean.novo}"
								update="formCadastro:painel">
								<f:actionListener
									type="org.omnifaces.eventlistener.ResetInputAjaxActionListener" />
							</p:commandButton>
						</div>
						<div align="right">
							<p:outputLabel value="Pesquisar Campos: " />
							<p:inputText id="globalFilter"
								onkeyup="PF('categTable').filter()" placeholder="Faça uma busca"
								style="width: 150px" />
						</div>
					</f:facet>

					<p:column headerText="Categoria" sortBy="#{categoria.categoria}"
						>
						<h:outputText value="#{categoria.categoria}" />
					</p:column>

					<p:column headerText="Opções" width="90">
						<p:commandButton icon="fa fa-trash" title="Excluir"
							actionListener="#{categoriaBean.excluir}"
							update=":mensagem :formListagem:tabela">
							<p:confirm header="Confirmação"
								message="Deseja excluir a categoria?" />
							<f:attribute name="categoriaSelecionada" value="#{categoria}" />
						</p:commandButton>
						<p:commandButton icon="fa fa-pencil" title="Editar"
							actionListener="#{categoriaBean.editar}"
							update=":mensagem :formCadastro:painel"
							oncomplete="PF('dialogo').show();">
							<f:attribute name="categoriaSelecionada" value="#{categoria}" />
						</p:commandButton>
					</p:column>
				</p:dataTable>

				<p:confirmDialog global="true" hideEffect="fold" showEffect="clip"
					responsive="true">
					<div align="center">
						<p:commandButton value="Sim" type="button"
							styleClass="ui-confirmdialog-yes" icon="fa fa-check" />
						<p:commandButton value="Não" type="button"
							styleClass="ui-confirmdialog-no" icon="fa fa-times" />
					</div>
				</p:confirmDialog>
			</p:panel>
		</h:form>

		<p:dialog header="Cadastro" widgetVar="dialogo" maximizable="true"
			resizable="false" modal="true" draggable="false" responsive="true"
			showEffect="clip" hideEffect="fold">
			<h:form id="formCadastro">
				<p:tab id="tabCategoria" title="Categoria">
					<p:panel header="Categoria do Produto">
						<h:panelGrid id="painel" columns="1">
							<p:outputLabel for="categ" value="Categoria:" />
							<p:inputText id="categ" maxlength="20" title="Categoria"
								value="#{categoriaBean.categoria.categoria}" required="true"
								requiredMessage="Informe a descrição" style="width:350px;" />
						</h:panelGrid>
					</p:panel>
				</p:tab>
				<p:separator />
				<div align="left">
					<h:panelGrid columns="2">
						<p:commandButton value="Salvar" icon="fa fa-floppy-o"
							oncomplete="if (args &amp;&amp; !args.validationFailed) PF('dialogo').hide()"
							actionListener="#{categoriaBean.salvar}"
							update=":mensagem :formCadastro :formListagem" />
						<p:commandButton value="Fechar" icon="fa fa-times"
							oncomplete="PF('dialogo').hide();">
							<f:actionListener
								type="org.omnifaces.eventlistener.ResetInputAjaxActionListener" />
						</p:commandButton>
					</h:panelGrid>
				</div>
			</h:form>
		</p:dialog>
	</ui:define>
</ui:composition>
{'fraction_non_alphanumeric': 0.17221451687471104, 'fraction_numerical': 0.006703652334720296, 'mean_word_length': 3.516179540709812, 'pattern_counts': {'":': 6, '<': 127, '<?xml version=': 2, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 18}, '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': '3385963', 'n_tokens_mistral': 3877, 'n_tokens_neox': 2989, 'n_words': 415}