<commit_before># Webbit - A Java event based WebSocket and HTTP server

## Getting it

[Prebuilt JARs are available](http://search.maven.org/#search%7Cga%7C1%7Cwebbit) from the central Maven repository.

Alternatively, you can get the latest code from Git and build it yourself:

    git clone git://github.com/webbit/webbit.git
    cd webbit

### Make

Build is done with `make`. On OS-X and Linux this should work out of the box. On Solaris, use `gmake`. On Windows you will need Cygwin.

    make

### Maven

    mvn install

## Quick start

Start a web server on port 8080 and serve some static files:

```java
WebServer webServer = WebServers.createWebServer(8080)
    .add(new StaticFileHandler("/web")); // path to web content
    .start();
```

That was easy.

Now let's build a WebSocketHandler.
<commit_msg>fixing simple example<commit_after># Webbit - A Java event based WebSocket and HTTP server

## Getting it

[Prebuilt JARs are available](http://search.maven.org/#search%7Cga%7C1%7Cwebbit) from the central Maven repository.

Alternatively, you can get the latest code from Git and build it yourself:

    git clone git://github.com/webbit/webbit.git
    cd webbit

### Make

Build is done with `make`. On OS-X and Linux this should work out of the box. On Solaris, use `gmake`. On Windows you will need Cygwin.

    make

### Maven

    mvn install

## Quick start

Start a web server on port 8080 and serve some static files:

```java
WebServer webServer = WebServers.createWebServer(8080)
    .add(new StaticFileHandler("/web")); // path to web content
webServer.start();
```

That was easy.

Now let's build a WebSocketHandler.

{'fraction_non_alphanumeric': 0.0947176684881603, 'fraction_numerical': 0.014571948998178506, 'mean_word_length': 3.7220630372492836, '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': '31106', 'n_tokens_mistral': 543, 'n_tokens_neox': 498, 'n_words': 208}