<commit_before>package de.hsmainz.bos.overpassApi;

import java.io.IOException;
import java.net.URI;

import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
import org.glassfish.jersey.server.ResourceConfig;

/**
 * Main class of the microservice.
 *
 * @author Angelique
 * @since 28.12.2016
 */
public class Main {

	// ****************************************
	// CONSTANTS
	// ****************************************

	/** The Constant BASE_URI. */
	// URI the Grizzly HTTP server will listen on
	public static final String BASE_URI = "http://localhost:8050/";

	/**
	 * Instantiates a new main.
	 */
	@SuppressWarnings("deprecation")

	// ****************************************
	// VARIABLES
	// ****************************************

	// ****************************************
	// INIT/CONSTRUCTOR
	// ****************************************

	private Main() {

	}

	// ****************************************
	// GETTER/SETTER
	// ****************************************

	// ****************************************
	// PUBLIC METHODS
	// ****************************************

	/**
	 * Starts Grizzly HTTP server.
	 *
	 * @return Grizzly HTTP server
	 */

	public static HttpServer startServer() {
		final ResourceConfig rc = new ResourceConfig().packages("de.hs_mainz.bos.overpassApi");
		return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);
	}

	/**
	 * Main server method.
	 *
	 * @param args
	 *            the arguments
	 * @throws IOException
	 *             Signals that an I/O exception has occurred.
	 */

	public static void main(String[] args) throws IOException {
		final HttpServer server = startServer();
		System.out.println(String.format(
				"Jersery app started with WADL available at " + "%sapplication.wadl\nHit enter to stop it...",
				BASE_URI));
		System.in.read();
		server.stop();
	}

	// ****************************************
	// INNER CLASSES
	// ****************************************

	/**
	 * example of a call
	 * localhost:8050/overpassAPI?callback=xxx&interest=fire_station&south=49.9221&west=8.0842&north=50.0972&east=8.4584
	 */
<commit_msg>Packagenamen in der HttpServer Funktion in der Main.java geändert<commit_after>package de.hsmainz.bos.overpassApi;

import java.io.IOException;
import java.net.URI;

import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
import org.glassfish.jersey.server.ResourceConfig;

/**
 * Main class of the microservice.
 *
 * @author Angelique
 * @since 28.12.2016
 */
public class Main {

	// ****************************************
	// CONSTANTS
	// ****************************************

	// URI the Grizzly HTTP server will listen on
	public static final String BASE_URI = "http://localhost:8050/";

	// ****************************************
	// VARIABLES
	// ****************************************

	// ****************************************
	// INIT/CONSTRUCTOR
	// ****************************************

	// ****************************************
	// GETTER/SETTER
	// ****************************************

	// ****************************************
	// PUBLIC METHODS
	// ****************************************

	/**
	 * Starts Grizzly HTTP server.
	 *
	 * @return Grizzly HTTP server
	 */

	public static HttpServer startServer() {
		final ResourceConfig rc = new ResourceConfig().packages("de.hsmainz.bos.overpassApi");
		return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);
	}

	/**
	 * Main server method.
	 *
	 * @param args
	 * @throws IOException
	 */

	@SuppressWarnings("deprecation")
	public static void main(String[] args) throws IOException {
		final HttpServer server = startServer();
		System.out.println(String.format(
				"Jersery app started with WADL available at " + "%sapplication.wadl\nHit enter to stop it...",
				BASE_URI));
		System.in.read();
		server.stop();
	}

	// ****************************************
	// INNER CLASSES
	// ****************************************

	/**
	 * example of a call
	 * localhost:8050/overpassAPI?callback=xxx&interest=fire_station&south=49.9221&west=8.0842&north=50.0972&east=8.4584
	 */

{'fraction_non_alphanumeric': 0.3280224929709466, 'fraction_numerical': 0.018275538894095594, 'mean_word_length': 4.329588014981273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6646302', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1188, 'n_words': 238}