<commit_before>OpenSenseMap
============

[![Join the chat at https://gitter.im/sensebox/openSenseMap](https://badges.gitter.im/sensebox/openSenseMap.svg)](https://gitter.im/sensebox/openSenseMap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Installation

Go to the cloned repository and run

```
npm install
bower install
```

Now you are good to go and start up the server

```
grunt serve
```

Alternatively, you can use a webserver like nginx and point the web root to the /app folder:

```
server {
        root /var/www/OpenSenseMap/app;
        index index.html;
        location / {
                try_files $uri $uri/ /index.html;
        }

}
```

Code license: MIT License<commit_msg>add more details for setting up with docker<commit_after>openSenseMap
============

## Installation

### Docker
For installing openSenseMap and openSenseMap-API with Docker check out our [oSeM-compose](https://github.com/sensebox/OSeM-compose) repository.

Clone this repository
``` git clone git@github.com:sensebox/openSenseMap.git ```

Go to the cloned repository and install all dependencies by running

```
npm install
bower install
```

### Local installation

Replace the following variables with your configuration:
- ```OPENSENSEMAP_API_URL``` in [opensenseboxapi.js](https://github.com/sensebox/openSenseMap/blob/master/app/scripts/services/opensenseboxapi.js#L13)
- ```OPENSENSEMAP_MAPTILES_URL``` in [map.js line 13](https://github.com/sensebox/openSenseMap/blob/master/app/scripts/controllers/map.js#L13), [map.js line 73](https://github.com/sensebox/openSenseMap/blob/master/app/scripts/controllers/map.js#L73) and [register.js](https://github.com/sensebox/openSenseMap/blob/master/app/scripts/controllers/register.js#L202)


For ```OPENSENSEMAP_API_URL``` use your own API Url (e.g. ```localhost:8000```) or our live API.

For ```OPENSENSEMAP_MAPTILES_URL``` you can use standard OpenStreetMap tiles e.g. ```http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png```.



Now you are good to go and start up the server in development mode by running:

```
grunt serve
```

Alternatively, you can use a webserver like nginx and point the web root to the /app folder:

```
server {
        root /var/www/OpenSenseMap/app;
        index index.html;
        location / {
                try_files $uri $uri/ /index.html;
        }

}
```

Code license: MIT License
{'fraction_non_alphanumeric': 0.13642052565707133, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 4.069767441860465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, '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': '3328788', 'n_tokens_mistral': 832, 'n_tokens_neox': 779, 'n_words': 198}