<commit_before>swagger: '2.0'

info:
  version: "1.0.1"
  title: OpenALPR Cloud API
host: api.openalpr.com
basePath: /v1
schemes:
  - https
produces:
  - application/json

paths:
  # Send an image to OpenALPR and get the analyzed results
  /recognize:
    post:
      description: |
        Send an image for OpenALPR to analyze and provide metadata back
      consumes: 
        - "multipart/form-data"
      produces:
        - application/json
      parameters:
        -
          name: secret_key
          in: query
          description: |
            The secret key used to authenticate your account.  You can view your 
            secret key by visiting 
            https://cloud.openalpr.com/
          required: true
          type: string
        -
          name: tasks
          in: query
          description: |
            Tasks to execute.  You can choose to detect the license plate, 
            as well as additional metadata about the vehicle.  Each additional 
            option costs an API credit.
          required: true
          type: array
          items: 
            type: string
            enum: [ "plate", "color", "make", "makemodel"]
        -
          name: image
          in: formData
          description: |
            The image file that you wish to analyze
            At least one value for image, image_bytes, or image_url must be provided
          required: true
          type: file
        -
          name: image_bytes
          in: query
          description: |
            The image file that you wish to analyze encoded in base64
            At least one value for image, image_bytes, or image_url must be provided
          required: false
          type: string
        -
          name: image_url
          in: query
          description: |
            A URL to an image that you wish to analyze
            At least one value for image, image_bytes, or image_url must be provided
          required: false
          type: string
        -<commit_msg>Added tasks to description<commit_after>swagger: '2.0'

info:
  version: "1.0.1"
  title: OpenALPR Cloud API
host: api.openalpr.com
basePath: /v1
schemes:
  - https
produces:
  - application/json

paths:
  # Send an image to OpenALPR and get the analyzed results
  /recognize:
    post:
      description: |
        Send an image for OpenALPR to analyze and provide metadata back
      consumes: 
        - "multipart/form-data"
      produces:
        - application/json
      parameters:
        -
          name: secret_key
          in: query
          description: |
            The secret key used to authenticate your account.  You can view your 
            secret key by visiting 
            https://cloud.openalpr.com/
          required: true
          type: string
        -
          name: tasks
          in: query
          description: |
            Tasks to execute.  You can choose to detect the license plate, 
            as well as additional metadata about the vehicle.  Each additional 
            option costs an API credit.  Valid values are: plate, color, make, makemodel.
            Use commas to specify multiple recognition types in one pass
          required: true
          type: array
          items: 
            type: string
            enum: [ "plate", "color", "make", "makemodel"]
        -
          name: image
          in: formData
          description: |
            The image file that you wish to analyze
            At least one value for image, image_bytes, or image_url must be provided
          required: true
          type: file
        -
          name: image_bytes
          in: query
          description: |
            The image file that you wish to analyze encoded in base64
            At least one value for image, image_bytes, or image_url must be provided
          required: false
          type: string
        -
          name: image_url
          in: query
          description: |
            A URL to an image that you wish to analyze
            At least one value for image, image_bytes, or image_url must be provided
          required: false
          type: string
        -
{'fraction_non_alphanumeric': 0.053982725527831094, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 1.5312689738919247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3793999', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1035, 'n_words': 436}