<commit_before><%--
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ include file="/html/portlet/blogs/init.jsp" %>

<%@page import="com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.OrderFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQuery" %>

<%@page import="com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil" %>

<%
String F_DISPLAY_DATE = "displayDate";
String F_GROUP_ID = "groupId";
long assetCategoryId = ParamUtil.getLong(request, "categoryId");
String assetTagName = ParamUtil.getString(request, "tag");

PortletURL portletURL = renderResponse.createRenderURL();

portletURL.setParameter("struts_action", "/blogs/view");
Integer year = ParamUtil.getInteger(request, "filterYear", -1);
Integer month = ParamUtil.getInteger(request, "filterMonth", 0);

if (year > 0) {
    portletURL.setParameter("filterYear", String.valueOf(year));
}
if (month >= 0) {
    portletURL.setParameter("filterMonth", String.valueOf(month));
}
month--;
%>

<portlet:actionURL var="undoTrashURL">
	<portlet:param name="struts_action" value="/blogs/edit_entry" />
	<portlet:param name="<%= Constants.CMD %>" value="<%= Constants.RESTORE %>" />
</portlet:actionURL>

<liferay-ui:trash-undo portletURL="<%= undoTrashURL %>" />

<liferay-portlet:renderURL varImpl="searchURL">
	<portlet:param name="struts_action" value="/blogs/search" />
</liferay-portlet:renderURL>

<aui:form action="<%= searchURL %>" method="get" name="fm1">
	<liferay-portlet:renderURLParams varImpl="searchURL" />
	<aui:input name="redirect" type="hidden" value="<%= currentURL %>" />
	<aui:input name="groupId" type="hidden" value="<%= String.valueOf(scopeGroupId) %>" />

	<%
	System.out.println("Container?");
	SearchContainer searchContainer = new SearchContainer(renderRequest, null, null, SearchContainer.DEFAULT_CUR_PARAM, pageDelta, portletURL, null, null);

	searchContainer.setDelta(pageDelta);
	searchContainer.setDeltaConfigurable(false);

	DynamicQuery dq = DynamicQueryFactoryUtil.forClass(BlogsEntry.class);

	Calendar c = Calendar.getInstance();
	if (year > 0) {
    	c.set(Calendar.YEAR, year);
    
    	if (month >= 0) {
        	c.set(Calendar.MONTH, month);
    	}
    	else {
        	c.set(Calendar.MONTH, 0);
    	}
    <commit_msg>Removal of "System.out"<commit_after><%--
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ include file="/html/portlet/blogs/init.jsp" %>

<%@page import="com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.OrderFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil" %>
<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQuery" %>

<%@page import="com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil" %>

<%
String F_DISPLAY_DATE = "displayDate";
String F_GROUP_ID = "groupId";
long assetCategoryId = ParamUtil.getLong(request, "categoryId");
String assetTagName = ParamUtil.getString(request, "tag");

PortletURL portletURL = renderResponse.createRenderURL();

portletURL.setParameter("struts_action", "/blogs/view");
Integer year = ParamUtil.getInteger(request, "filterYear", -1);
Integer month = ParamUtil.getInteger(request, "filterMonth", 0);

if (year > 0) {
    portletURL.setParameter("filterYear", String.valueOf(year));
}
if (month >= 0) {
    portletURL.setParameter("filterMonth", String.valueOf(month));
}
month--;
%>

<portlet:actionURL var="undoTrashURL">
	<portlet:param name="struts_action" value="/blogs/edit_entry" />
	<portlet:param name="<%= Constants.CMD %>" value="<%= Constants.RESTORE %>" />
</portlet:actionURL>

<liferay-ui:trash-undo portletURL="<%= undoTrashURL %>" />

<liferay-portlet:renderURL varImpl="searchURL">
	<portlet:param name="struts_action" value="/blogs/search" />
</liferay-portlet:renderURL>

<aui:form action="<%= searchURL %>" method="get" name="fm1">
	<liferay-portlet:renderURLParams varImpl="searchURL" />
	<aui:input name="redirect" type="hidden" value="<%= currentURL %>" />
	<aui:input name="groupId" type="hidden" value="<%= String.valueOf(scopeGroupId) %>" />

	<%
	SearchContainer searchContainer = new SearchContainer(renderRequest, null, null, SearchContainer.DEFAULT_CUR_PARAM, pageDelta, portletURL, null, null);

	searchContainer.setDelta(pageDelta);
	searchContainer.setDeltaConfigurable(false);

	DynamicQuery dq = DynamicQueryFactoryUtil.forClass(BlogsEntry.class);

	Calendar c = Calendar.getInstance();
	if (year > 0) {
    	c.set(Calendar.YEAR, year);
    
    	if (month >= 0) {
        	c.set(Calendar.MONTH, month);
    	}
    	else {
        	c.set(Calendar.MONTH, 0);
    	}
    
{'fraction_non_alphanumeric': 0.15075795435615524, 'fraction_numerical': 0.005997001499250375, 'mean_word_length': 5.254166666666666, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 65, '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': '6544517', 'n_tokens_mistral': 1973, 'n_tokens_neox': 1936, 'n_words': 429}