<commit_before>---
title: /content/text
position: 2
type: post
description: Submit text to Arbitrum server
right_code: |
  ~~~ http
  HTTP/1.1 200 OK
  ~~~
  {: title="Response" }

  ~~~ http
  HTTP/1.1 400 Bad Request
  Content-Type: application/json

  {
    "error": "Insufficient parameters"
  }
  ~~~
  {: title="Error" }
---
text
: Text for moderation

~~~ http
POST /v1/text HTTP/1.1
Host: text.arbitrum.com
Content-Type: application/json
X-Auth-Token: ARBITRUM_AUTH_TOKEN

{
  "text": "This is comment body"
}
~~~
{: title="HTTPS" }

Server response:

~~~ json
{
  "result": "non_abusive"
}
~~~

or

~~~ json
{
  "result": "abusive"
}
~~~
<commit_msg>Fix for text_post.md JSON markup<commit_after>---
title: /content/text
position: 2
type: post
description: Submit text to Arbitrum server
right_code: |
  ~~~ json
  {
    "result": "non_abusive"
  }
  ~~~
  
  ~~~ json
  {
    "result": "abusive"
  }
  ~~~
  {: title="Response" }

  ~~~ http
  HTTP/1.1 400 Bad Request
  Content-Type: application/json

  {
    "error": "Insufficient parameters"
  }
  ~~~
  {: title="Error" }
---
text
: Text for moderation

~~~ http
POST /v1/text HTTP/1.1
Host: text.arbitrum.com
Content-Type: application/json
X-Auth-Token: ARBITRUM_AUTH_TOKEN

{
  "text": "This is comment body"
}
~~~
{: title="HTTPS" }

{'fraction_non_alphanumeric': 0.1706379707916987, 'fraction_numerical': 0.017678708685626442, 'mean_word_length': 3.227272727272727, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, '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': '1263200', 'n_tokens_mistral': 531, 'n_tokens_neox': 492, 'n_words': 115}