<commit_before>get:
  description:
    List all running tasks.
  is: [ secured ]
  queryParameters:
    status:
      description: Filter the list of tasks by status
      enum: [ running, staging ]
  responses:
    200:
      description: The list of all tasks disregarding their status, or a list of tasks matching the specified status filter.
      body:
        application/json:
          example: !include examples/tasks.json
        text/plain:
          example: |
            frontend-foosball	10019	srv4.example.com:31292
            tools_docker_registry	5000	srv2.example.com:31721


/delete:
  post:
    description:
      Kill a list of running tasks.
    is: [ secured, deployable ]
    queryParameters:
      scale:
        type: boolean
        description: If `scale=true` is specified, then the related application is scaled down by the number of killed tasks. Only possible if `wipe=false` or not specified.
        default: false
      wipe:
        type: boolean
        description: If `wipe=true` is specified and the app uses local persistent volumes, associated dynamic reservations will be unreserved, and persistent volumes will be destroyed. Only possible if `scale=false` or not specified.
        default: false
    body:
      application/json:
        example: |
          { "ids": [ "task1", "task2" ] }<commit_msg>Status parameter is not required on the tasks endpoint (#5622)<commit_after>get:
  description:
    List all tasks.
  is: [ secured ]
  queryParameters:
    status:
      required: false
      description: Filter the list of tasks by status. If status is not specified, tasks with any status will be included.
      enum: [ running, staging ]
  responses:
    200:
      description: The list of all tasks disregarding their status, or a list of tasks matching the specified status filter.
      body:
        application/json:
          example: !include examples/tasks.json
        text/plain:
          example: |
            frontend-foosball	10019	srv4.example.com:31292
            tools_docker_registry	5000	srv2.example.com:31721


/delete:
  post:
    description:
      Kill a list of running tasks.
    is: [ secured, deployable ]
    queryParameters:
      scale:
        type: boolean
        description: If `scale=true` is specified, then the related application is scaled down by the number of killed tasks. Only possible if `wipe=false` or not specified.
        default: false
      wipe:
        type: boolean
        description: If `wipe=true` is specified and the app uses local persistent volumes, associated dynamic reservations will be unreserved, and persistent volumes will be destroyed. Only possible if `scale=false` or not specified.
        default: false
    body:
      application/json:
        example: |
          { "ids": [ "task1", "task2" ] }
{'fraction_non_alphanumeric': 0.06819787985865725, 'fraction_numerical': 0.019787985865724382, 'mean_word_length': 2.5520702634880803, 'pattern_counts': {'":': 2, '<': 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': '6071070', 'n_tokens_mistral': 777, 'n_tokens_neox': 732, 'n_words': 302}