<commit_before>import Exceptions.InactiveCarException
import car.client.Client
import io.netty.bootstrap.ServerBootstrap
import io.netty.buffer.Unpooled
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.nio.NioServerSocketChannel
import io.netty.handler.codec.http.*
import objects.Car
import java.io.ByteArrayOutputStream
import java.util.*
import kotlin.concurrent.thread

/**
 * Created by user on 7/6/16.
 */

val timeDeltaToDrop = 600000//time in ms. if car is inactive more than this time, server drop session with car
val carServerPort: Int = 7925
val webServerPort: Int = 7926
val handlerThreadsCount: Int = 100
val getLocationUrl = "/getLocation"
val routeDoneUrl = "/routeDone"
val setRouteUrl = "/route"
val connectUrl = "/connect"
val debugMemoryUrl = "/debug/memoty"

fun main(args: Array<String>) {

    val carServer = getCarServerThread()
//    val webServer = getWebServerThread()
    val carsDestroy = getCarsDestroyThread()
    carServer.start()
    carsDestroy.start()

    //CL user interface<commit_msg>fixed wrong url<commit_after>import Exceptions.InactiveCarException
import car.client.Client
import io.netty.bootstrap.ServerBootstrap
import io.netty.buffer.Unpooled
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.nio.NioServerSocketChannel
import io.netty.handler.codec.http.*
import objects.Car
import java.io.ByteArrayOutputStream
import java.util.*
import kotlin.concurrent.thread

/**
 * Created by user on 7/6/16.
 */

val timeDeltaToDrop = 600000//time in ms. if car is inactive more than this time, server drop session with car
val carServerPort: Int = 7925
val webServerPort: Int = 7926
val handlerThreadsCount: Int = 100
val getLocationUrl = "/getLocation"
val routeDoneUrl = "/routeDone"
val setRouteUrl = "/route"
val connectUrl = "/connect"
val debugMemoryUrl = "/debug/memory"

fun main(args: Array<String>) {

    val carServer = getCarServerThread()
//    val webServer = getWebServerThread()
    val carsDestroy = getCarsDestroyThread()
    carServer.start()
    carsDestroy.start()

    //CL user interface
{'fraction_non_alphanumeric': 0.09591642924976258, 'fraction_numerical': 0.019943019943019943, 'mean_word_length': 4.648793565683646, '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': '7130715', 'n_tokens_mistral': 671, 'n_tokens_neox': 632, 'n_words': 179}