<commit_before>require 'travis/api/app'

class Travis::Api::App
  class Endpoint
    class Workers < Endpoint
      get '/' do
        respond_with service(:find_workers, params)
      end

      get '/:id' do
        respond_with service(:find_worker, params)
      end
    end
  end
end
<commit_msg>pass the api payload type for workers because we now do not return AR scopes any more<commit_after>require 'travis/api/app'

class Travis::Api::App
  class Endpoint
    class Workers < Endpoint
      get '/' do
        respond_with service(:find_workers, params), type: :workers
      end

      get '/:id' do
        respond_with service(:find_worker, params), type: :worker
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.0, 'mean_word_length': 2.696335078534031, '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': '1995393', 'n_tokens_mistral': 216, 'n_tokens_neox': 211, 'n_words': 70}