<commit_before>## Bridge installation on a J2EE server

This document shows how to deploy the bridge as a servlet on the Tomcat server.

### Install tomcat

A generic Tomcat installation is located [here](./server/install_tomcat.html).


### Create a java bridge deployable .war file.
 
Create a deployale servlet, you can use the following snippet :

```bash
# Download 
$ wget "http://downloads.sourceforge.net/project/php-java-bridge/Binary%20package/php-java-bridge_6.2.1/JavaBridgeTemplate621.war?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fphp-java-bridge%2Ffiles%2FBinary%2520package%2Fphp-java-bridge_6.2.1%2F&ts=1415114437&use_mirror=softlayer-ams" -O JavaBridgeTemplate621.war;

# Extract jars into a war structure
$ mkdir -p ./pjb_war/dist/WEB-INF/lib;
$ unzip -o -j JavaBridgeTemplate621.war WEB-INF/lib/*.jar -d ./pjb_war/dist/WEB-INF/lib;


# Add as many dependencies as you want in the WEB-INF/lib directory
# For example mysql connector, jasper report, custom fonts...

# See also web.xml configuration at the end of document.
<commit_msg>Remove obsolete incomplete tests<commit_after>## Bridge installation on a J2EE server

This document shows how to deploy the bridge as a servlet on the Tomcat server.

### Install tomcat

A generic Tomcat installation is located [here](./server/install_tomcat.html).


### Create a java bridge deployable .war file.
 
Create a deployable servlet, you can use the following snippet :

```bash
# Download 
$ wget "http://downloads.sourceforge.net/project/php-java-bridge/Binary%20package/php-java-bridge_6.2.1/JavaBridgeTemplate621.war?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fphp-java-bridge%2Ffiles%2FBinary%2520package%2Fphp-java-bridge_6.2.1%2F&ts=1415114437&use_mirror=softlayer-ams" -O JavaBridgeTemplate621.war;

# Extract jars into a war structure
$ mkdir -p ./pjb_war/dist/WEB-INF/lib;
$ unzip -o -j JavaBridgeTemplate621.war WEB-INF/lib/*.jar -d ./pjb_war/dist/WEB-INF/lib;


# Add as many dependencies as you want in the WEB-INF/lib directory
# For example mysql connector, jasper report, custom fonts...

# See also web.xml configuration at the end of document.

{'fraction_non_alphanumeric': 0.10892018779342723, 'fraction_numerical': 0.038497652582159626, 'mean_word_length': 4.728494623655914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2235856', 'n_tokens_mistral': 782, 'n_tokens_neox': 715, 'n_words': 199}