<commit_before><#macro endpoint_macro docsUrl="">
{

  <@lib.endpointInfo
      id = "getIncidentsCount"
      tag = "Incident"
      summary = "Get List Count"
      desc = "Queries for the number of incidents that fulfill given parameters. Takes the same parameters as the
      [Get Incidents](${docsUrl}/reference/rest/incident/get-query/) method." />

  "parameters": [
    <#assign last = true >
    <#include "/lib/commons/incident-query-params.ftl">
  ],
  "responses" : {

    <@lib.response
        code = "200"
        dto = "CountResultDto"
        array = true
        desc = "Request successful."
        examples = ['"example-1": {
                       "summary": "GET `/incident/count?processInstanceId=aProcInstId`",
                       "value": [
                           {
                             "count": 2
                           }]}'] /><commit_msg>fix(open-api): correct response of incident count<commit_after><#macro endpoint_macro docsUrl="">
{

  <@lib.endpointInfo
      id = "getIncidentsCount"
      tag = "Incident"
      summary = "Get List Count"
      desc = "Queries for the number of incidents that fulfill given parameters. Takes the same parameters as the
      [Get Incidents](${docsUrl}/reference/rest/incident/get-query/) method." />

  "parameters": [
    <#assign last = true >
    <#include "/lib/commons/incident-query-params.ftl">
  ],
  "responses" : {

    <@lib.response
        code = "200"
        dto = "CountResultDto"
        desc = "Request successful."
        examples = ['"example-1": {
                       "summary": "GET `/incident/count?processInstanceId=aProcInstId`",
                       "value": [
                           {
                             "count": 2
                           }]}'] />
{'fraction_non_alphanumeric': 0.1315053161723559, 'fraction_numerical': 0.005595970900951315, 'mean_word_length': 1.79375, 'pattern_counts': {'":': 10, '<': 13, '<?xml version=': 0, '>': 13, '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': '2896028', 'n_tokens_mistral': 524, 'n_tokens_neox': 494, 'n_words': 117}