<commit_before>module Api
  module V3
    class InputsController < BaseController
      before_filter :set_current_scenario, :only => [:index, :show]
      before_filter :find_input, :only => :show

      # GET /api/v3/inputs
      # GET /api/v3/scenarios/:scenario_id/inputs
      #
      # Returns the details for all available inputs. If the scenario_id isn't
      # passed then the action will use the latest scenario. There is no caching
      # yet.
      def index
        @inputs = Input.all<commit_msg>API v3: one more try in fixing the weird inheritance issue<commit_after>module Api
  module V3
    class InputsController < ::Api::V3::BaseController
      before_filter :set_current_scenario, :only => [:index, :show]
      before_filter :find_input, :only => :show

      # GET /api/v3/inputs
      # GET /api/v3/scenarios/:scenario_id/inputs
      #
      # Returns the details for all available inputs. If the scenario_id isn't
      # passed then the action will use the latest scenario. There is no caching
      # yet.
      def index
        @inputs = Input.all
{'fraction_non_alphanumeric': 0.08425925925925926, 'fraction_numerical': 0.007407407407407408, 'mean_word_length': 2.7404844290657437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5889583', 'n_tokens_mistral': 322, 'n_tokens_neox': 318, 'n_words': 107}