<commit_before>1. API: /api/message

1.1 URL：
http://[Domain]/api/message
[Sample] http://helloconversation.mybluemix.net/api/message

1.2	Pattern：
json

1.3	HTTP Request Method：
POST

1.4 Input Param:
1.4.1  Param Name：input     Necessary or not：Yes
1.4.2  Param Name：context     Necessary or not：No

[Sample]
{
  "input": {
    "text": "hello"
  },
  "context": {
    "conversation_id": "6e71bb87-ac67-448c-ae8c-28b422b9c9d8",
    "system": {
      "dialog_stack": [
        "root"
      ],
      "dialog_turn_counter": 2,
      "dialog_request_counter": 2
    },
    "defaultCounter": 0
  }
}

2. API: /api/graphic

2.1 URL
http://[Domain]/api/graphic
[Sample] http://helloconversation.mybluemix.net/api/graphic

2.2	pattern
json

2.3	HTTP Request Method
GET

2.4 Input Param:
No.<commit_msg>Reformatted the README and added licence back<commit_after># ThothNodeJS
ThothNodeJS provides RESTful services of Thoth. This is the project of a Conversational Agent, the Robot Brain of GBS Innovation Center

# API
## Conversation
POST: `/api/message`

Content-Type: `application/json`

### HTTP Request body: 
<table>
    <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Required</th>
        <th>Note</th>
    </tr>
    <tr>
        <td>input</td>
        <td>object</td>
        <td>required</td>
        <td></td>
    </tr>
    <tr>
        <td>context</td>
        <td>object</td>
        <td></td>
        <td>The context is generated from Watson Conversaion</td>
    </tr>
</table>

#### `input` scheme: 
<table>
    <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Required</th>
    </tr>
    <tr>
        <td>text</td>
        <td>string</td>
        <td>required</td>
    </tr>
</table>

#### `context` scheme: 
<table>
    <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Required</th>
    </tr>
    <tr>
        <td>conversation_id</td>
        <td>string</td>
        <td>required</td>
    </tr>
    <tr>
        <td>system</td>
        <td>object</td>
        <td>required</td>
    </tr>
    <tr>
        <td>defaultCounter</td>
        <td>integer</td>
        <td>required</td>
    </tr>
</table>

###### `system` scheme: 
<table>
    <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Required</th>
    </tr>
    <tr>
        <td>dialog_stack</td>
        <td>array&lt;string&gt;</td>
        <td>required</td>
    </tr>
    <tr>
        <td>dialog_turn_counter</td>
        <td>integer</td>
        <td>required</td>
    </tr>
    <tr>
        <td>dialog_request_counter</td>
        <td>integer</td>
        <td>required</td>
    </tr>
</table>


## Sample of HTTP request body: 
```JSON
{
  "input": {
    "text": "hello"
  },
  "context": {
    "conversation_id": "6e71bb87-ac67-448c-ae8c-28b422b9c9d8",
    "system": {
      "dialog_stack": [
        "root"
      ],
      "dialog_turn_counter": 2,
      "dialog_request_counter": 2
    },
    "defaultCounter": 0
  }
}
```

## Graphic
GET: `/api/graphic`

Content-Type: `application/json`


#License
Copyright 2016 GCG GBS CTO Office under [the Apache 2.0 license](LICENSE).
{'fraction_non_alphanumeric': 0.1749758764876166, 'fraction_numerical': 0.023801865551624318, 'mean_word_length': 2.1963001027749227, 'pattern_counts': {'":': 18, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 0, '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': '1479762', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1192, 'n_words': 230}