<commit_before>swagger: "2.0"
info:
  version: "0.1.0"
  title: express-swagger-rest
# during dev, should point to your local machine
host: localhost:10010
# basePath prefixes all resource paths
basePath: /
#
schemes:
  # tip: remove http to make production-grade
  - http
  - https
# format of bodies a client can send (Content-Type)
consumes:
  - application/json
# format of the responses to the client (Accepts)
produces:
  - application/json
paths:
  /swagger:
    x-swagger-pipe: swagger_raw
  /comics:
    x-swagger-router-controller: comic
    get:
      description: Returns all comics
      operationId: comic_list
      responses:
        200:
          description: JSON array of all comics
          schema:
            type: array
            items:
              $ref: "#/definitions/Comic"
        500:
          description: Server error
          schema:
            type: object
    post:
      description: Create a new comic
      operationId: comic_create
      parameters:
      - name: comic
        in: body
        description: JSON representation of the comic to be created
        required: true
        schema:
          $ref: "#/definitions/Comic"
      responses:
        201:
          description: Created
          schema:
            $ref: "#/definitions/Comic"
        400:
          description: Bad request
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/bulk:
    x-swagger-router-controller: comic
    post:
      description: Create a series of new comics
      operationId: comic_bulkCreate
      parameters:
      - name: comics
        in: body
        description: JSON representation of the comic to be created
        required: true
        schema:
          type: array
          items:
            $ref: "#/definitions/Comic"
      responses:
        201:
          description: Created
          schema:
            $ref: "#/definitions/Comic"
        400:
          description: Bad request
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/{id}:
    x-swagger-router-controller: comic
    get:
      description: Returns the comic with the requested ID
      operationId: comic_get
      parameters:
      - name: id
        in: path
        description: ID of the comic
        required: true
        type: integer
      responses:
        200:
          description: Success
          schema:
            $ref: "#/definitions/Comic"
        404:
          description: Not found
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
    put:
      description: Make changes to the given comic
      operationId: comic_put
      parameters:
      - name: id
        in: path
        description: ID of the comic
        required: true
        type: integer
      - name: data
        in: body
        description: Fields to update
        required: true
        schema:
          $ref: "#/definitions/Comic"
      responses:
        200:
          description: Success
          schema:
            $ref: "#/definitions/Comic"
        404:
          description: Not found
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/{comic}/page/{page}:
    x-swagger-router-controller: image
    get:
      description: Get the page of comics
      operationId: image_list
      parameters:
      - name: comic
        in: path
        description: ID of the comic
        required: true
        type: integer
      - name: page
        in: path
        description: Page number to fetch
        required: true
        type: integer
      - name: size
        in: query
        required: false
        description: Number of comics to retun on the page
        default: 25
        type: integer
      responses:
        200:
          description: Success
          schema:<commit_msg>Updating service info and grouping<commit_after>swagger: "2.0"
info:
  version: "0.1.0"
  title: Comics Archiver
# during dev, should point to your local machine
host: localhost:10010
# basePath prefixes all resource paths
basePath: /
#
schemes:
  # tip: remove http to make production-grade
  - http
  - https
# format of bodies a client can send (Content-Type)
consumes:
  - application/json
# format of the responses to the client (Accepts)
produces:
  - application/json
paths:
  /swagger:
    x-swagger-pipe: swagger_raw
  /comics:
    x-swagger-router-controller: comic
    get:
      description: Returns all comics
      operationId: comic_list
      tags: [Comics]
      responses:
        200:
          description: JSON array of all comics
          schema:
            type: array
            items:
              $ref: "#/definitions/Comic"
        500:
          description: Server error
          schema:
            type: object
    post:
      description: Create a new comic
      operationId: comic_create
      tags: [Comics]
      parameters:
      - name: comic
        in: body
        description: JSON representation of the comic to be created
        required: true
        schema:
          $ref: "#/definitions/Comic"
      responses:
        201:
          description: Created
          schema:
            $ref: "#/definitions/Comic"
        400:
          description: Bad request
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/bulk:
    x-swagger-router-controller: comic
    post:
      description: Create a series of new comics
      operationId: comic_bulkCreate
      tags: [Comics]
      parameters:
      - name: comics
        in: body
        description: JSON representation of the comic to be created
        required: true
        schema:
          type: array
          items:
            $ref: "#/definitions/Comic"
      responses:
        201:
          description: Created
          schema:
            $ref: "#/definitions/Comic"
        400:
          description: Bad request
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/{id}:
    x-swagger-router-controller: comic
    get:
      description: Returns the comic with the requested ID
      operationId: comic_get
      tags: [Comics]
      parameters:
      - name: id
        in: path
        description: ID of the comic
        required: true
        type: integer
      responses:
        200:
          description: Success
          schema:
            $ref: "#/definitions/Comic"
        404:
          description: Not found
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
    put:
      description: Make changes to the given comic
      operationId: comic_put
      tags: [Comics]
      parameters:
      - name: id
        in: path
        description: ID of the comic
        required: true
        type: integer
      - name: data
        in: body
        description: Fields to update
        required: true
        schema:
          $ref: "#/definitions/Comic"
      responses:
        200:
          description: Success
          schema:
            $ref: "#/definitions/Comic"
        404:
          description: Not found
          schema:
            type: object
        500:
          description: Server error
          schema:
            type: object
  /comics/{comic}/page/{page}:
    x-swagger-router-controller: image
    get:
      description: Get the page of comics
      operationId: image_list
      tags: [Comics]
      parameters:
      - name: comic
        in: path
        description: ID of the comic
        required: true
        type: integer
      - name: page
        in: path
        description: Page number to fetch
        required: true
        type: integer
      - name: size
        in: query
        required: false
        description: Number of comics to retun on the page
        default: 25
        type: integer
      responses:
        200:
          description: Success
          schema:
{'fraction_non_alphanumeric': 0.06813819577735125, 'fraction_numerical': 0.013675623800383877, 'mean_word_length': 1.5248334342822532, 'pattern_counts': {'":': 0, '<': 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': '5251971', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2152, 'n_words': 738}