<commit_before>### Request (single user)

  ```javascript
{
    "token": "YOUR_TOKEN_HERE",
    "config": {
      "idPath": "tasks[].id",
      "aggregator": { "mean": "*" },
      "plugins": {
        "compare-chat": {
            "use": "chat-text-plugin",
            "inputs": ["tasks[].chat", "file.title"],
            "params": { "user": "def"}
        }
      }
    },
    "file": {
        "title": "Hello world"
    },
    "tasks": [
      {
        "id": 1,
        "chat": [
          {
          "type": "message",
          "text": "test test",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 200
        },
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "def",
          "ts": 400
        },
        {
          "type": "message",
          "text": "Hello hello",
          "channel": "C2147483705",
          "user": "ghi",
          "ts": 1200
        }
        ]
      },
      {
        "id": 2,
        "chat": [
          
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 500
        },
        {
          "type": "message",
          "text": "no content match",
          "channel": "C2147483705",
          "user": "def",
          "ts": 500
        },
        {
          "type": "message",
          "text": "not user",
          "channel": "C2147483705",
          "user": "ghi",
          "ts": 1200
        }
        ]
      }
    ]
  }
  ```

### Response (single user)

  ```javascript
  {
    "success": true,
    "result": [
      {
        "compare-chat": 1,
        "id": 1,
        "total": 1
      },
      {
        "compare-chat": 0,
        "id": 2,
        "total": 0
      }
    ],
    "uid": "UID"
  }
  ```


### Request (array of users)

  ```javascript
  {
    "token": "YOUR_TOKEN_HERE",
    "config": {
      "idPath": "tasks[].id",
      "aggregator": { "mean": "*" },
      "plugins": {
        "compare-chat": {
            "use": "chat-text-plugin",
            "inputs": ["tasks[]", "file.title"],
            "params": { "user": ["def", "abc"] }
        }
      }
    },
    "file": {
        "title": "Hello world"
    },
    "tasks": [
      {
        "id": 1,
        "chat": [
          {
          "type": "message",
          "text": "test test",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 200
        },
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "def",
          "ts": 400
        },
        {
          "type": "message",<commit_msg>fix example<commit_after>### Request (single user)

  ```javascript
{
    "token": "YOUR_TOKEN_HERE",
    "config": {
      "idPath": "tasks[].id",
      "aggregator": { "mean": "*" },
      "plugins": {
        "compare-chat": {
            "use": "chat-text-plugin",
            "inputs": ["tasks[].chat", "file.title"],
            "params": { "user": "def"}
        }
      }
    },
    "file": {
        "title": "Hello world"
    },
    "tasks": [
      {
        "id": 1,
        "chat": [
          {
          "type": "message",
          "text": "test test",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 200
        },
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "def",
          "ts": 400
        },
        {
          "type": "message",
          "text": "Hello hello",
          "channel": "C2147483705",
          "user": "ghi",
          "ts": 1200
        }
        ]
      },
      {
        "id": 2,
        "chat": [
          
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 500
        },
        {
          "type": "message",
          "text": "no content match",
          "channel": "C2147483705",
          "user": "def",
          "ts": 500
        },
        {
          "type": "message",
          "text": "not user",
          "channel": "C2147483705",
          "user": "ghi",
          "ts": 1200
        }
        ]
      }
    ]
  }
  ```

### Response (single user)

  ```javascript
  {
    "success": true,
    "result": [
      {
        "compare-chat": 1,
        "id": 1,
        "total": 1
      },
      {
        "compare-chat": 0,
        "id": 2,
        "total": 0
      }
    ],
    "uid": "UID"
  }
  ```


### Request (array of users)

  ```javascript
  {
    "token": "YOUR_TOKEN_HERE",
    "config": {
      "idPath": "tasks[].id",
      "aggregator": { "mean": "*" },
      "plugins": {
        "compare-chat": {
            "use": "chat-text-plugin",
            "inputs": ["tasks[].chat", "file.title"],
            "params": { "user": ["def", "abc"] }
        }
      }
    },
    "file": {
        "title": "Hello world"
    },
    "tasks": [
      {
        "id": 1,
        "chat": [
          {
          "type": "message",
          "text": "test test",
          "channel": "C2147483705",
          "user": "abc",
          "ts": 200
        },
        {
          "type": "message",
          "text": "Hello world",
          "channel": "C2147483705",
          "user": "def",
          "ts": 400
        },
        {
          "type": "message",
{'fraction_non_alphanumeric': 0.2014692378328742, 'fraction_numerical': 0.04224058769513315, 'mean_word_length': 1.1845166466105095, 'pattern_counts': {'":': 168, '<': 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': '7480534', 'n_tokens_mistral': 1944, 'n_tokens_neox': 1783, 'n_words': 352}