<commit_before>  swagger: "2.0"
  info: 
    description: "Go Todo REST Api"
    version: "1.0.0"
    title: "Go Todo API"
    contact: 
      email: "<EMAIL>"
    license: 
      name: "Released under the MIT License."
      url: "https://opensource.org/licenses/MIT"
  host: "172.16.31.10"
  basePath: "/v1"
  tags: 
    - 
      name: "todo"
      description: "Todo API"
      externalDocs: 
        description: "comming soon"
        url: "xxxx"
  schemes: 
    - "https"
  paths: 
    /todos: 
      get: 
        tags: 
          - "todo"
        summary: "Get todo list"
        description: "Returns all todo records that have in root group"
        produces: 
          - "application/json"
        responses: 
          200: 
            description: "A list of todos."
            schema: 
              type: "array"
              items: 
                - 
                  $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      post: 
        tags: 
          - "todo"
        summary: "Create todo"
        description: "Create and Add todo a record to root group"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/Todo"
        responses: 
          200: 
            description: "A todo record added"
            schema:  
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
    /todos/{id}: 
      get: 
        tags: 
          - "todo"
        summary: "Get todo record"
        description: "Return a todo record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      put: 
        tags: 
          - "todo"
        summary: "update a todo record"
        description: "Return the updated record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/Todo"
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      delete: 
        tags: 
          - "todo"
        summary: "delete a todo record"
        description: "Return the deleted record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "The deleted record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
    /todos/{id}/move: 
      post: 
        tags: 
          - "todo"
        summary: "Move todo record to root group"
        description: "move a todo record to root group"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/Todo"
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record added"
            schema: 
              $ref: "#/definitions/Todo"
          404: 
            description: "Not Found"
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
  definitions: 
    Todo: 
      type: "object"
      properties: 
        id: 
          type: "string"
        title: 
          type: "string"
        due_date: 
          type: "string"
          format: "date"
        color: 
          type: "string"
        marked: 
          type: "boolean"
    Error: 
      type: "object"
      properties: 
        error: 
          type: "string"<commit_msg>add extends todo object for swagger<commit_after>  swagger: "2.0"
  info: 
    description: "Go Todo REST Api"
    version: "1.0.0"
    title: "Go Todo API"
    contact: 
      email: "<EMAIL>"
    license: 
      name: "Released under the MIT License."
      url: "https://opensource.org/licenses/MIT"
  host: "172.16.31.10"
  basePath: "/v1"
  tags: 
    - 
      name: "todo"
      description: "Todo API"
      externalDocs: 
        description: "comming soon"
        url: "xxxx"
  schemes: 
    - "https"
  paths: 
    /todos: 
      get: 
        tags: 
          - "todo"
        summary: "Get todo list"
        description: "Returns all todo records that have in root group"
        produces: 
          - "application/json"
        responses: 
          200: 
            description: "A list of todos."
            schema: 
              type: "array"
              items: 
                - 
                  $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      post: 
        tags: 
          - "todo"
        summary: "Create todo"
        description: "Create and Add todo a record to root group"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/TodoRequest"
        responses: 
          200: 
            description: "A todo record added"
            schema:  
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
    /todos/{id}: 
      get: 
        tags: 
          - "todo"
        summary: "Get todo record"
        description: "Return a todo record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      put: 
        tags: 
          - "todo"
        summary: "update a todo record"
        description: "Return the updated record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/TodoRequest"
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
      delete: 
        tags: 
          - "todo"
        summary: "delete a todo record"
        description: "Return the deleted record"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "The deleted record."
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
    /todos/{id}/move: 
      post: 
        tags: 
          - "todo"
        summary: "Move todo record to root group"
        description: "move a todo record to root group"
        produces: 
          - "application/json"
        parameters: 
          - 
            name: "body"
            in: "body"
            description: "todo param"
            schema: 
              $ref: "#/definitions/Todo"
          - 
            name: "id"
            in: "path"
            description: "todo id"
            required: true
            type: "string"
        responses: 
          200: 
            description: "A todo record added"
            schema: 
              $ref: "#/definitions/Todo"
          404: 
            description: "Not Found"
            schema: 
              $ref: "#/definitions/Todo"
          default: 
            description: "Unexpected error"
            schema: 
              $ref: "#/definitions/Error"
  definitions: 
    TodoRequest:
      type: "object"
      properties: 
        title: 
          type: "string"
        due_date: 
          type: "string"
          format: "date"
        color: 
          type: "string"
        marked: 
          type: "boolean"
    Todo:
      "allOf":
        - 
          $ref: "#/definitions/TodoRequest"
        -
          properties: 
            id: 
              type: "string"
    Error: 
      type: "object"
      properties: 
        error: 
          type: "string"
{'fraction_non_alphanumeric': 0.0986338533087879, 'fraction_numerical': 0.006976068210444724, 'mean_word_length': 1.0996745321399513, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7029670', 'n_tokens_mistral': 2926, 'n_tokens_neox': 2732, 'n_words': 743}