<commit_before>module Api
  class DocsController < ActionController::Base
    include Swagger::Blocks

    # :nocov:
    swagger_root do
      key :swagger, '2.0'
      info do
        key :version, '0.1.0'
        key :title, 'EveMonk back-end API'
      end
      key :schemes, ['http']
      key :host, 'evemonk.com'
      key :basePath, '/api'
      key :consumes, ['application/json']
      key :produces, ['application/json']
      tag do
        key :name, 'signups'
        key :description, 'Signups operations'
      end
      tag do
        key :name, 'session'
        key :description, 'Session operation'
      end
    end

    # A list of all classes that have swagger_* declarations.
    SWAGGERED_CLASSES = [
      Api::Docs::Signups,

      Api::Docs::Models::User,

      self,
    ].freeze
    # :nocov:

    def index<commit_msg>Set swagger host via dotenv<commit_after>module Api
  class DocsController < ActionController::Base
    include Swagger::Blocks

    # :nocov:
    swagger_root do
      key :swagger, '2.0'
      info do
        key :version, '0.1.0'
        key :title, 'EveMonk back-end API'
      end
      key :schemes, ['http']
      key :host, (ENV['API_BACKEND_HOST'] || 'localhost:3000')
      key :basePath, '/api'
      key :consumes, ['application/json']
      key :produces, ['application/json']
      tag do
        key :name, 'signups'
        key :description, 'Signups operations'
      end
      tag do
        key :name, 'session'
        key :description, 'Session operation'
      end
    end

    # A list of all classes that have swagger_* declarations.
    SWAGGERED_CLASSES = [
      Api::Docs::Signups,

      Api::Docs::Models::User,

      self,
    ].freeze
    # :nocov:

    def index
{'fraction_non_alphanumeric': 0.1145475372279496, 'fraction_numerical': 0.008018327605956471, 'mean_word_length': 2.164855072463768, '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': '4996308', 'n_tokens_mistral': 577, 'n_tokens_neox': 563, 'n_words': 158}