<commit_before># APIDOC

## Authentication

### Sign-in

```
[POST] /users/sign_in.json
{
  user: {
    email: '<EMAIL>',
    password: '<PASSWORD>'
  }
}
```

You must include the user email and the returned `authentication_token` in your
request header to perform API calls as an authenticated user. A user cannot open
simultaneous sessions, opening a new session will invalidate previously created
authentication tokens. Example:

```ruby
request = Net::HTTP::Get.new(url)
request.add_field('X-User-Email', email)
request.add_field('X-User-Token', authentication_token)
```<commit_msg>Updated documentation about Authorization header<commit_after># APIDOC

## Authentication

### Sign-in

```
[POST] /users/sign_in.json
{
  user: {
    email: '<EMAIL>',
    password: '<PASSWORD>'
  }
}
```

Example response:

```js
{
  "user": {
    "id": 2,
    "email": "<EMAIL>",
    "created_at": "2015-06-20T00:00:00.000Z",
    "updated_at": "2016-01-21T11:32:26.769Z"
  },
  "status": "ok",
  "authentication_token":"<PASSWORD>"
}
```

You must include the returned `authentication_token` in the `Authorization`
request header to perform API calls as an authenticated user.
A user cannot open simultaneous sessions, opening a new session will invalidate
previously created authentication tokens. Example:

```ruby
request = Net::HTTP::Get.new(url)
request.add_field('Authorization', authentication_token)
```
{'fraction_non_alphanumeric': 0.1419400855920114, 'fraction_numerical': 0.024964336661911554, 'mean_word_length': 4.870292887029288, 'pattern_counts': {'":': 7, '<': 9, '<?xml version=': 0, '>': 9, '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': '7668819', 'n_tokens_mistral': 480, 'n_tokens_neox': 448, 'n_words': 130}