<commit_before># srclib-java [![Build Status](https://travis-ci.org/sourcegraph/srclib-java.png?branch=master)](https://travis-ci.org/sourcegraph/srclib-java)

## Requirements

srclib-java Requires Oracle JDK 8, or OpenJDK 8 to run, as well as Maven to build.

Additionally, run the following command to register `tools.jar` as an artifact that can be included from Maven.
```
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.8 -Dpackaging=jar -Dfile="/usr/lib/jvm/java-8-oracle/lib/tools.jar"
```
## Building

srclib-java can be build and registered with the following two commands.
```
make
src toolchain add sourcegraph.com/sourcegraph/srclib-java
```

## Testing

`make test` - Test in program mode

`make test-gen` - Generate new test data in program mode<commit_msg>Added a note to the REAMDE file.<commit_after># srclib-java [![Build Status](https://travis-ci.org/sourcegraph/srclib-java.png?branch=master)](https://travis-ci.org/sourcegraph/srclib-java)

## Requirements

srclib-java Requires Oracle JDK 8, or OpenJDK 8 to run, as well as Maven to build.

Additionally, run the following command to register `tools.jar` as an artifact
that can be included from Maven.
```
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.8 -Dpackaging=jar -Dfile="/usr/lib/jvm/java-8-oracle/lib/tools.jar"
```
## Building

srclib-java can be build and registered with the following two commands.
```
make
src toolchain add sourcegraph.com/sourcegraph/srclib-java
```

## Testing

`make test` - Test in program mode

`make test-gen` - Generate new test data in program mode

## Limitations

The code currently assumes that all dependencies are stored on Maven Central,
and have a pom.xml file.
{'fraction_non_alphanumeric': 0.11656087709174841, 'fraction_numerical': 0.005770340450086555, 'mean_word_length': 4.611650485436893, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '3884134', 'n_tokens_mistral': 593, 'n_tokens_neox': 559, 'n_words': 179}