<commit_before>package com.payneteasy.superfly;

import javax.naming.NamingException;

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Start {
	 private static final Logger LOG = LoggerFactory.getLogger(Start.class);

	    /**
	     * -Dwicket.configuration=development or deployment
	     * -Djetty.port=8085
	     */
	    public static void main(String[] args) throws Exception {
	        new Start().startServer();
	    }
	    
	    public void startServer() throws NamingException {
	        LOG.info("Configuring jetty web server ...");

	        final Server server = new Server();
	        SocketConnector connector = new SocketConnector();
	        // Set some timeout options to make debugging easier.
	        connector.setMaxIdleTime(1000 * 60 * 60);
	        connector.setSoLingerTime(-1);
	        connector.setPort(Integer.parseInt(System.getProperty("jetty.port", "8085")));
	        server.setConnectors(new Connector[]{connector});

	        WebAppContext paynet = new WebAppContext();
	        paynet.setServer(server);
	        paynet.setContextPath("/alerting");
	        paynet.setWar("src/main/webapp");
	        paynet.setConfigurationClasses(new String[] {
	                "org.mortbay.jetty.webapp.WebInfConfiguration",
	                "org.mortbay.jetty.plus.webapp.EnvConfiguration",
	                "org.mortbay.jetty.plus.webapp.Configuration",
	                "org.mortbay.jetty.webapp.JettyWebXmlConfiguration"
	        });<commit_msg>RESOLVED - issue CSRV-32: переделал alerting на superfly<commit_after>package com.payneteasy.superfly;

import javax.naming.NamingException;

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Start {
	 private static final Logger LOG = LoggerFactory.getLogger(Start.class);

	    /**
	     * -Dwicket.configuration=development or deployment
	     * -Djetty.port=8085
	     */
	    public static void main(String[] args) throws Exception {
	        new Start().startServer();
	    }
	    
	    public void startServer() throws NamingException {
	        LOG.info("Configuring jetty web server ...");

	        final Server server = new Server();
	        SocketConnector connector = new SocketConnector();
	        // Set some timeout options to make debugging easier.
	        connector.setMaxIdleTime(1000 * 60 * 60);
	        connector.setSoLingerTime(-1);
	        connector.setPort(Integer.parseInt(System.getProperty("jetty.port", "8085")));
	        server.setConnectors(new Connector[]{connector});

	        WebAppContext paynet = new WebAppContext();
	        paynet.setServer(server);
	        paynet.setContextPath("/superfly");
	        paynet.setWar("src/main/webapp");
	        paynet.setConfigurationClasses(new String[] {
	                "org.mortbay.jetty.webapp.WebInfConfiguration",
	                "org.mortbay.jetty.plus.webapp.EnvConfiguration",
	                "org.mortbay.jetty.plus.webapp.Configuration",
	                "org.mortbay.jetty.webapp.JettyWebXmlConfiguration"
	        });
{'fraction_non_alphanumeric': 0.11005070086489711, 'fraction_numerical': 0.011929615269907545, 'mean_word_length': 2.8729792147806004, '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': '5830359', 'n_tokens_mistral': 1076, 'n_tokens_neox': 946, 'n_words': 176}