<commit_before>Development Environment Setup
-----------------------------

1. Clone the project repository using git.
2. Install HomeBrew (Mac users only).
3. Run _brew install gradle_ for Mac. 

   For Linux users
   Download the source binary directly from the gradle website.
   Copy the downloaded folder to /usr/bin. Add the path to gradle bin folder to your /etc/profile file
   export PATH="$PATH:/usr/bin/gradle-1.1/bin"

4. Install PostgreSQL.
5. Setup _postgres_ user with password as configured in _gradle.properties_ file.
6. Create _open_lmis_ database.
	create database open_lmis;
7. Run _gradle build_ to run all tests and build a WAR.

IntelliJ IDEA Setup
-------------------
1. Run "gradle idea" to create the project files
2. Open the open-lmis.ipr file<commit_msg>|#000| updated readme to explain gradle tasks<commit_after>Development Environment Setup
-----------------------------

1. Clone the project repository using git.
2. Install HomeBrew (Mac users only).
3. Run _brew install gradle_ for Mac. 

   For Linux users
   Download the source binary directly from the gradle website.
   Copy the downloaded folder to /usr/bin. Add the path to gradle bin folder to your /etc/profile file
   export PATH="$PATH:/usr/bin/gradle-1.1/bin"

4. Install PostgreSQL.
5. Setup _postgres_ user with password as configured in _gradle.properties_ file.
6. Create _open_lmis_ database.
	create database open_lmis;
7. Run _gradle build_ to run all tests and build a WAR.

IntelliJ IDEA Setup
-------------------
1. Run "gradle idea" to create the project files
2. Open the open-lmis.ipr file


Running App on Jetty
---------------------
You can use _gradle clean build setupdb seed testseed run_ to start the app.
There are bunch of gradle tasks that you can see by doing _gradle tasks
_build is to build the app.
_setupdb_ is to recreate the database and schema.
_seed_ is to seed in the reference data.
_testseed_ puts in some test data which can be used to browse through basic functionality in the system.
_run_ is to run the app in embedded jetty.

Once run, you can access the home page at http://localhost:9091/
{'fraction_non_alphanumeric': 0.10343206393982135, 'fraction_numerical': 0.013634226610249177, 'mean_word_length': 2.970149253731343, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4498585', 'n_tokens_mistral': 619, 'n_tokens_neox': 585, 'n_words': 304}