<commit_before># encoding: utf-8

module QuirkyApi
  require 'will_paginate'

  # The base class provides the standard functionality that every API requires.
  # Inherit your contorller from QuirkyApi::Base to include the functionality.
  #
  # @example
  #  class Api::V1::InventionsController < QuirkyApi::Base
  #    # Intentionally left blank
  #  end
  class Base < ActionController::Base
    include ActionController::Cookies

    include QuirkyApi::Rescue
    include QuirkyApi::Bouncer
    include QuirkyApi::Session
    include QuirkyApi::Mobile
    include QuirkyApi::Response
    include QuirkyApi::Can

    def self.inherited(base)
      base.send(:include, ::QuirkyApi.auth_system) if QuirkyApi.auth_system.is_a?(Module)
      base.send(:include, ::ApplicationHelper)
    end
  end
end<commit_msg>Fixes issue with routes in api tests<commit_after># encoding: utf-8

module QuirkyApi
  require 'will_paginate'

  # The base class provides the standard functionality that every API requires.
  # Inherit your contorller from QuirkyApi::Base to include the functionality.
  #
  # @example
  #  class Api::V1::InventionsController < QuirkyApi::Base
  #    # Intentionally left blank
  #  end
  class Base < ActionController::Base
    include ActionController::Cookies

    include QuirkyApi::Rescue
    include QuirkyApi::Bouncer
    include QuirkyApi::Session
    include QuirkyApi::Mobile
    include QuirkyApi::Response
    include QuirkyApi::Can

    def self.inherited(base)
      base.send(:include, ::QuirkyApi.auth_system) if QuirkyApi.auth_system.is_a?(Module)
      base.send(:include, ::ApplicationHelper)
      base.send(:include, ::Rails.application.routes.url_helpers)
    end
  end
end
{'fraction_non_alphanumeric': 0.08543007606787595, 'fraction_numerical': 0.0023405500292568754, 'mean_word_length': 4.104477611940299, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2240201', 'n_tokens_mistral': 536, 'n_tokens_neox': 529, 'n_words': 133}