<commit_before># gee-gateway

This is a REST API designed to be used by [CEO (Collect Earth Online)](https://github.com/openforis/collect-earth-online) to interface with Google Earth Engine.

## INSTALLATION

### Google Earth Engine

> https://developers.google.com/earth-engine/python_install

### gee-gateway

From project root directory

> pip install -r requirements.txt

## INSTALLATION

> python run.py

From project root directory

## STRUCTURE

    ├── README.md
    ├── license.txt
    ├── requirements.txt            third party libraries
    ├── config.py                   configuration file
    ├── run.py                      application start up
    ├── instance                    (not in version control)
       ├── config.py                alternative configuration file
    ├── gee_gateway                 application folder
       ├── __init__.py              application initialization
       ├── utils.py
       ├── api
       │   ├── __init__.py
       │   ├── routes.py             routes definition
       │   ├── errors.py             error handlers definition
       ├── gee
       │   ├── __init__.py
       │   ├── utils.py<commit_msg>few improvements<commit_after># gee-gateway

This is a REST API designed to be used by [CEO (Collect Earth Online)](https://github.com/openforis/collect-earth-online) to interface with Google Earth Engine.

## REQUIREMENTS

1. [Python 2.7](https://www.python.org/)
2. [pip (package manager)](https://github.com/pypa/pip)
3. [Earth Engine Python API](https://developers.google.com/earth-engine/python_install)

## INSTALLATION

From project root directory

> pip install -r requirements.txt

## CONFIGURATION

Edit the configuration file (config.py)

## EXECUTION

From project root directory

> python run.py

## STRUCTURE

    ├── README.md
    ├── license.txt
    ├── requirements.txt            third party libraries
    ├── config.py                   configuration file
    ├── run.py                      application start up
    ├── instance                    (not in version control)
       ├── config.py                alternative configuration file (not in version control)
    ├── gee_gateway                 application folder
       ├── __init__.py              application initialization
       ├── utils.py
       ├── web
       │   ├── __init__.py
       │   ├── errors.py             error handlers definition
       │   ├── routes.py             routes definition
       ├── gee
       │   ├── __init__.py
       │   ├── gee_exception.py
       │   ├── utils.py
{'fraction_non_alphanumeric': 0.1069182389937107, 'fraction_numerical': 0.0019654088050314465, 'mean_word_length': 1.976608187134503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 6, 'lorem ipsum': 0, 'www.': 1, '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': '5227811', 'n_tokens_mistral': 715, 'n_tokens_neox': 738, 'n_words': 235}