<commit_before>Ana. Open Source Web Analytics.
==============================

[![Go Report Card](https://goreportcard.com/badge/github.com/dannyvankooten/ana)](https://goreportcard.com/report/github.com/dannyvankooten/ana)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dannyvankooten/ana/master/LICENSE)


This is nowhere near being usable, let alone stable. Please treat as a proof of concept while we work on getting this to a stable state.

![Screenshot of the Ana dashboard](https://github.com/dannyvankooten/ana/raw/master/assets/img/screenshot.png?v=6)

## Installation

For getting a development version of Ana up & running, please go through the following steps.

1. Rename `.env.example` to `.env` and set your database credentials.
1. Create or migrate the database: `export $(cat .env | xargs) && $GOPATH/bin/migrate -url mysql://$ANA_DATABASE_USER:$ANA_DATABASE_PASSWORD@$ANA_DATABSE_HOST/$ANA_DATABASE_NAME -path ./db/migrations up`
3. Compile into binary: `make`
4. Create your user account: `ana register <email> <password>`
5. Run default Gulp task to build static assets: `gulp`
6. Start the webserver: `ana server --port=8080` & visit **localhost:8080** to access your analytics dashboard.
<commit_msg>add big fat heads up about running Ana in production<commit_after>Ana. Open Source Web Analytics.
==============================

[![Go Report Card](https://goreportcard.com/badge/github.com/dannyvankooten/ana)](https://goreportcard.com/report/github.com/dannyvankooten/ana)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dannyvankooten/ana/master/LICENSE)


This is nowhere near being usable, let alone stable. Please treat as a proof of concept while we work on getting this to a stable state. **Do not run Ana in production yet unless you like spending time on it.** Things will keep changing for the next few months.

![Screenshot of the Ana dashboard](https://github.com/dannyvankooten/ana/raw/master/assets/img/screenshot.png?v=6)

## Installation

For getting a development version of Ana up & running, please go through the following steps.

1. Rename `.env.example` to `.env` and set your database credentials.
1. Create or migrate the database: `export $(cat .env | xargs) && $GOPATH/bin/migrate -url mysql://$ANA_DATABASE_USER:$ANA_DATABASE_PASSWORD@$ANA_DATABSE_HOST/$ANA_DATABASE_NAME -path ./db/migrations up`
3. Compile into binary: `make`
4. Create your user account: `ana register <email> <password>`
5. Run default Gulp task to build static assets: `gulp`
6. Start the webserver: `ana server --port=8080` & visit **localhost:8080** to access your analytics dashboard.

{'fraction_non_alphanumeric': 0.13823529411764707, 'fraction_numerical': 0.011029411764705883, 'mean_word_length': 5.060133630289532, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1577908', 'n_tokens_mistral': 880, 'n_tokens_neox': 835, 'n_words': 274}