<commit_before>module Paasal
  module API
    module V1
      class Vendors < Grape::API
        helpers Paasal::SharedParamsHelper

        helpers do
          # noinspection RubyArgCount
          params :vendor_id do
            requires :vendor_id, type: String, desc: "The vendor's ID in the form of a UUID."
          end
        end

        resource :vendors do

          # LIST vendors
          desc 'List of supported vendors in this API version' do
            success Paasal::API::Models::Vendors
            failure ErrorResponses.standard_responses
          end
          get '/' do
            #vendor_dao = Paasal::DB::VendorDao.new self.version
            vendors = vendor_dao.get_all
            present vendors, with: Models::Vendors
          end

          # GET vendor
          desc 'Get a selected vendor entity via its ID' do
            success Paasal::API::Models::Vendor
            failure ErrorResponses.standard_responses
          end
          params do<commit_msg>deleted missing sharedParamsHelper pt2<commit_after>module Paasal
  module API
    module V1
      class Vendors < Grape::API

        helpers do
          # noinspection RubyArgCount
          params :vendor_id do
            requires :vendor_id, type: String, desc: "The vendor's ID in the form of a UUID."
          end
        end

        resource :vendors do

          # LIST vendors
          desc 'List of supported vendors in this API version' do
            success Paasal::API::Models::Vendors
            failure ErrorResponses.standard_responses
          end
          get '/' do
            #vendor_dao = Paasal::DB::VendorDao.new self.version
            vendors = vendor_dao.get_all
            present vendors, with: Models::Vendors
          end

          # GET vendor
          desc 'Get a selected vendor entity via its ID' do
            success Paasal::API::Models::Vendor
            failure ErrorResponses.standard_responses
          end
          params do
{'fraction_non_alphanumeric': 0.056338028169014086, 'fraction_numerical': 0.0015090543259557343, 'mean_word_length': 1.7701949860724233, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2860684', 'n_tokens_mistral': 528, 'n_tokens_neox': 524, 'n_words': 170}