<commit_before># Callback
==================

### Overview

A simple API driven web application to track the calls that need to be 
transferred.  It sends out an email when a new request is made, adds it to a
list to be monitored.  You can go view each one, where you can see all notes
regarding the callback.  You can update the callback, which also sends out an
email, same when updating the status.

### Installation

> git clone https://github.com/3cko/callbacks.git

Once in the repo:

> python virtualenv.py flask
> flask/bin/pip -r Requirements.txt
> python db_create.py

Once you have your servers IP, run the application from within:

> flask/bin/python run.py runserver -h xxx.xxx.xxx.xxx -p 8182

### Usage

#### Web
Load up the URL in your favorite browser.

#### API

The API only accepts and returns JSON

|HTTP Method|URI|Action|
|:-|:-|:-|
|GET|http://[hostname]/api/v1.0/callbacks|Retrieve list of callbacks|
|GET|http://[hostname]/api/v1.0/callbacks/[callback]|Retrieve a callback|
|POST|http://[hostname]/api/v1.0/callbacks|Create new callback|
|PUT|http://[hostname]/api/v1.0/callbacks/[callback]|Update a callback|

POST request accepts all fields
-ddi:
-name:
-phone:
-ticket:
-platform:<commit_msg>formatting<commit_after># Callback
==================

### Overview

A simple API driven web application to track the calls that need to be 
transferred.  It sends out an email when a new request is made, adds it to a
list to be monitored.  You can go view each one, where you can see all notes
regarding the callback.  You can update the callback, which also sends out an
email, same when updating the status.

### Installation

> git clone https://github.com/3cko/callbacks.git

Once in the repo:

> python virtualenv.py flask
> flask/bin/pip -r Requirements.txt
> python db_create.py

Once you have your servers IP, run the application from within:

> flask/bin/python run.py runserver -h xxx.xxx.xxx.xxx -p 8182

### Usage

#### Web
Load up the URL in your favorite browser.

#### API

The API only accepts and returns JSON

| HTTP Method  | URI                                             |                     Action |
| :----------- | :---------------------------------------------- | :------------------------- |
| GET          | http://[hostname]/api/v1.0/callbacks            | Retrieve list of callbacks |
| GET          | http://[hostname]/api/v1.0/callbacks/[callback] | Retrieve a callback        |
| POST         | http://[hostname]/api/v1.0/callbacks            | Create new callback        |
| PUT          | http://[hostname]/api/v1.0/callbacks/[callback] | Update a callback          |

POST request accepts all fields
-ddi:
-name:
-phone:
-ticket:
-platform:
{'fraction_non_alphanumeric': 0.1470915153760652, 'fraction_numerical': 0.00963319748054835, 'mean_word_length': 2.7138927097661623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5841706', 'n_tokens_mistral': 819, 'n_tokens_neox': 785, 'n_words': 299}