<commit_before>CommCare HQ
===========

https://github.com/dimagi/commcare-hq

[![Build Status](https://travis-ci.org/dimagi/commcare-hq.png)](https://travis-ci.org/dimagi/commcare-hq)
[![Test coverage](https://coveralls.io/repos/dimagi/commcare-hq/badge.png?branch=master)](https://coveralls.io/r/dimagi/commcare-hq)

CommCare HQ is a server-side tool to help manage community health workers.
It seamlessly integrates with CommCare mobile and CommCare ODK, as well as
providing generic domain management and form data-collection functionality.

More in depth docs are available on [ReadTheDocs](http://commcare-hq.readthedocs.org/en/latest/)

### Key Components

+ CommCare application builder
+ OpenRosa compliant xForms designer
+ SMS integration
+ Domain/user/CHW management
+ Xforms data collection
+ Case management
+ Over-the-air (ota) restore of user and cases
+ Integrated web and email reporting

Contributing
------------
We welcome contributions, see our [CONTRIBUTING.rst](CONTRIBUTING.rst) document for more.

Installing CommCare HQ
----------------------

Please note that these instructions are targeted toward UNIX-based systems.

### Installing dependencies

For Ubuntu 12.04, download the JDK (version 7) tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/index.html and rename it jdk.tar.gz in the same directory as install.sh.
Run the included `install.sh` script to install all
dependencies, set them up to run at startup, and set up required databases.
Then skip to "Setting up a virtualenv". 

Otherwise, install the following software from your OS package manager or the
individual project sites when necessary.

+ Python 2.6 or 2.7 (use 32 bit if you're on Windows see `Alternate steps for Windows` section below)
+ pip
+ CouchDB >= 1.0 (1.2 recommended) ([installation instructions][couchdb])
  - Note that when installing erlang, you do NOT need to check out an older version of erlang.rb
+ PostgreSQL >= 8.4 - (install from OS package manager or [here][postgres])
+ [elasticsearch][elasticsearch] (including Java 7).
  - The version we run is `Version: 0.90.5, JVM: 1.7.0_05`.
  - `brew install homebrew/versions/elasticsearch090` works well on mac
+ redis >= 2.2.12 ([installation notes](https://gist.github.com/mwhite/c0381c5236855993572c))<commit_msg>mac only<commit_after>CommCare HQ
===========

https://github.com/dimagi/commcare-hq

[![Build Status](https://travis-ci.org/dimagi/commcare-hq.png)](https://travis-ci.org/dimagi/commcare-hq)
[![Test coverage](https://coveralls.io/repos/dimagi/commcare-hq/badge.png?branch=master)](https://coveralls.io/r/dimagi/commcare-hq)

CommCare HQ is a server-side tool to help manage community health workers.
It seamlessly integrates with CommCare mobile and CommCare ODK, as well as
providing generic domain management and form data-collection functionality.

More in depth docs are available on [ReadTheDocs](http://commcare-hq.readthedocs.org/en/latest/)

### Key Components

+ CommCare application builder
+ OpenRosa compliant xForms designer
+ SMS integration
+ Domain/user/CHW management
+ Xforms data collection
+ Case management
+ Over-the-air (ota) restore of user and cases
+ Integrated web and email reporting

Contributing
------------
We welcome contributions, see our [CONTRIBUTING.rst](CONTRIBUTING.rst) document for more.

Installing CommCare HQ
----------------------

Please note that these instructions are targeted toward UNIX-based systems.

### Installing dependencies

For Ubuntu 12.04, download the JDK (version 7) tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/index.html and rename it jdk.tar.gz in the same directory as install.sh.
Run the included `install.sh` script to install all
dependencies, set them up to run at startup, and set up required databases.
Then skip to "Setting up a virtualenv". 

Otherwise, install the following software from your OS package manager or the
individual project sites when necessary.

+ Python 2.6 or 2.7 (use 32 bit if you're on Windows see `Alternate steps for Windows` section below)
+ pip
+ CouchDB >= 1.0 (1.2 recommended) ([installation instructions][couchdb])
  - Mac users: note that when installing erlang, you do NOT need to check out an older version of erlang.rb
+ PostgreSQL >= 8.4 - (install from OS package manager or [here][postgres])
+ [elasticsearch][elasticsearch] (including Java 7).
  - The version we run is `Version: 0.90.5, JVM: 1.7.0_05`.
  - `brew install homebrew/versions/elasticsearch090` works well on mac
+ redis >= 2.2.12 ([installation notes](https://gist.github.com/mwhite/c0381c5236855993572c))
{'fraction_non_alphanumeric': 0.11615284411636995, 'fraction_numerical': 0.02214502822405558, 'mean_word_length': 4.382009345794392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '2693055', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1340, 'n_words': 488}