<commit_before># Java Mongo Migrations

This library is designed to allow tracked Mongo schema migrations inside a Java application, creating the ability to write code-based database migrations utilising your own Java driver connection to achieve this.

This library utilises the [Jongo](http://jongo.org) library for executing migrations against the Mongo database schema, while keeping track of migration state.
 
## Compile and Install

To use this library, clone it locally and run either of the following commands:

+ Local Repository: `mvn clean install`
+ Central Repository: `mvn clean deploy`

To create the JAR, simply run `mvn clean package`

## Usage

### Define Your Migrations
<commit_msg>Updated README to note Java 7 compatible version<commit_after># Java Mongo Migrations

This library is designed to allow tracked Mongo schema migrations inside a Java application, creating the ability to write code-based database migrations utilising your own Java driver connection to achieve this.

This library utilises the [Jongo](http://jongo.org) library for executing migrations against the Mongo database schema, while keeping track of migration state.
 
## Compile and Install

To use this library, clone it locally and run either of the following commands:

+ Local Repository: `mvn clean install`
+ Central Repository: `mvn clean deploy`

To create the JAR, simply run `mvn clean package`

### Java 7 Version

For a Java 7 compilable version, see the `legacy-java7` branch.  Due to the use ot the TotallyLazy Java 8 library on master, I have added a Java 7-compatible branch that uses an older TotallyLazy library. 

## Usage

### Define Your Migrations

{'fraction_non_alphanumeric': 0.050959232613908875, 'fraction_numerical': 0.0035971223021582736, 'mean_word_length': 4.856140350877193, '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': '5116199', 'n_tokens_mistral': 425, 'n_tokens_neox': 410, 'n_words': 235}