<commit_before>package org.waterforpeople.mapping.app.web;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.servlet.http.HttpServletRequest;

import net.sf.jsr107cache.Cache;
import net.sf.jsr107cache.CacheException;
import net.sf.jsr107cache.CacheFactory;
import net.sf.jsr107cache.CacheManager;

import org.json.JSONObject;
import org.waterforpeople.mapping.analytics.dao.AccessPointMetricSummaryDao;
import org.waterforpeople.mapping.analytics.domain.AccessPointMetricSummary;
import org.waterforpeople.mapping.app.gwt.client.accesspoint.AccessPointMetricSummaryDto;
import org.waterforpeople.mapping.app.util.DtoMarshaller;
import org.waterforpeople.mapping.app.web.dto.PlacemarkRestResponse;
import org.waterforpeople.mapping.app.web.dto.SummaryDataRequest;
import org.waterforpeople.mapping.app.web.dto.SummaryDataResponse;

import com.gallatinsystems.common.util.PropertyUtil;
import com.gallatinsystems.framework.rest.AbstractRestApiServlet;
import com.gallatinsystems.framework.rest.RestRequest;
import com.gallatinsystems.framework.rest.RestResponse;
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.jsr107cache.GCacheFactory;

/**
 * handles requests for summary data
 * 
 * @author <NAME>
 * 
 */
public class SummaryDataRestServlet extends AbstractRestApiServlet {
	private static final String IMAGE_ROOT = "imageroot";
	private Cache cache;
	private static final Logger log = Logger
	.getLogger(SummaryDataRestServlet.class.getName());

	private static final long serialVersionUID = 7550953090927763716L;
	private AccessPointMetricSummaryDao apMetricSummaryDao;
	private static String imageRoot;
	public SummaryDataRestServlet() {
		setMode(JSON_MODE);
		apMetricSummaryDao = new AccessPointMetricSummaryDao();
		imageRoot = PropertyUtil.getProperty(IMAGE_ROOT);
		CacheFactory cacheFactory;
		try {<commit_msg>fixed imports<commit_after>package org.waterforpeople.mapping.app.web;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.servlet.http.HttpServletRequest;

import net.sf.jsr107cache.Cache;
import net.sf.jsr107cache.CacheException;
import net.sf.jsr107cache.CacheFactory;
import net.sf.jsr107cache.CacheManager;

import org.json.JSONObject;
import org.waterforpeople.mapping.analytics.dao.AccessPointMetricSummaryDao;
import org.waterforpeople.mapping.analytics.domain.AccessPointMetricSummary;
import org.waterforpeople.mapping.app.gwt.client.accesspoint.AccessPointMetricSummaryDto;
import org.waterforpeople.mapping.app.util.DtoMarshaller;
import org.waterforpeople.mapping.app.web.dto.SummaryDataRequest;
import org.waterforpeople.mapping.app.web.dto.SummaryDataResponse;

import com.gallatinsystems.common.util.PropertyUtil;
import com.gallatinsystems.framework.rest.AbstractRestApiServlet;
import com.gallatinsystems.framework.rest.RestRequest;
import com.gallatinsystems.framework.rest.RestResponse;
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.jsr107cache.GCacheFactory;

/**
 * handles requests for summary data
 * 
 * @author Ch<NAME>
 * 
 */
public class SummaryDataRestServlet extends AbstractRestApiServlet {
	private static final String IMAGE_ROOT = "imageroot";
	private Cache cache;
	private static final Logger log = Logger
	.getLogger(SummaryDataRestServlet.class.getName());

	private static final long serialVersionUID = 7550953090927763716L;
	private AccessPointMetricSummaryDao apMetricSummaryDao;
	private static String imageRoot;
	public SummaryDataRestServlet() {
		setMode(JSON_MODE);
		apMetricSummaryDao = new AccessPointMetricSummaryDao();
		imageRoot = PropertyUtil.getProperty(IMAGE_ROOT);
		CacheFactory cacheFactory;
		try {
{'fraction_non_alphanumeric': 0.08918311266550087, 'fraction_numerical': 0.0169872595553335, 'mean_word_length': 6.75968992248062, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5832795', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1202, 'n_words': 211}