<commit_before># py-geohex3
Geohex v3.2 python implementation.

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

## Install

### PyPI

```
pip install py-geohex3
```

### from source

```
git clone https://github.com/uncovertruth/py-geohex3.git

cd py-geohex3
python setup.py install
```


## Usage

```
import geohex

## retrieve geohex code from latitude / longitude
zone = geohex.get_zone_by_location(35.65858, 139.745433, 11)
print zone.code
# 'XM48854457273'

## retrieve location from geohex code
zone = geohex.get_zone_by_code('XM48854457273')
print zone.lat, zone.lon
# (35.658618718910624, 139.74540917994662)
```
<commit_msg>Updated style<commit_after># py-geohex3
Geohex v3.2 python implementation.

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

## Install

### PyPI

```shell
pip install py-geohex3
```

### from source

```shell
git clone https://github.com/uncovertruth/py-geohex3.git

cd py-geohex3
python setup.py install
```


## Usage

```python
import geohex

## retrieve geohex code from latitude / longitude
zone = geohex.get_zone_by_location(35.65858, 139.745433, 11)
print zone.code
# 'XM48854457273'

## retrieve location from geohex code
zone = geohex.get_zone_by_code('XM48854457273')
print zone.lat, zone.lon
# (35.658618718910624, 139.74540917994662)
```

{'fraction_non_alphanumeric': 0.14620689655172414, 'fraction_numerical': 0.11310344827586206, 'mean_word_length': 5.0966386554621845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5464214', 'n_tokens_mistral': 677, 'n_tokens_neox': 540, 'n_words': 106}