<commit_before># Pinfluence

[![Build Status](https://travis-ci.org/prosi-org/pinfluence.svg?branch=master)](https://travis-ci.org/prosi-org/pinfluence)

[http://pinfluence.org](http://pinfluence.org) - All world's influence in a map. Ruby and Hanami non-profit open source project.

## Installation

Make a copy of `.env.development.example` to `.env.development`, and configure the
database informations.

This is a Ruby project, so it is nice to have [RVM](https://rvm.io/) or [Rbenv](https://github.com/rbenv/rbenv) installed.

```bash
$ gem install bundler
$ bundle
```

After creating database user with database creation privilege, and
configuring `.env.development`:

```bash
$ bundle exec hanami db prepare
$ HANAMI_ENV=test bundle exec hanami db prepare
```

Now, run the tests. If everything is configured, all tests are going to pass.
<commit_msg>Adds codeclimate badge in README<commit_after># Pinfluence

[![Build Status](https://travis-ci.org/prosi-org/pinfluence.svg?branch=master)](https://travis-ci.org/prosi-org/pinfluence)

[![Code Climate](https://codeclimate.com/github/prosi-org/pinfluence.png)](https://codeclimate.com/github/prosi-org/pinfluence)

[http://pinfluence.org](http://pinfluence.org) - All world's influence in a map. Ruby and Hanami non-profit open source project.

## Installation

Make a copy of `.env.development.example` to `.env.development`, and configure the
database informations.

This is a Ruby project, so it is nice to have [RVM](https://rvm.io/) or [Rbenv](https://github.com/rbenv/rbenv) installed.

```bash
$ gem install bundler
$ bundle
```

After creating database user with database creation privilege, and
configuring `.env.development`:

```bash
$ bundle exec hanami db prepare
$ HANAMI_ENV=test bundle exec hanami db prepare
```

Now, run the tests. If everything is configured, all tests are going to pass.

{'fraction_non_alphanumeric': 0.13183279742765272, 'fraction_numerical': 0.0, 'mean_word_length': 4.780185758513932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '6085544', 'n_tokens_mistral': 619, 'n_tokens_neox': 581, 'n_words': 182}