<commit_before>module Rspec
  module Swagger
    class SwaggerLoader
      def initialize
        @root = JSON.parse(File.read("docs/swagger.json"))

        @resources = @root["apis"].map do |api|
          path = "#{api['path']}.json"

          if File.exists?("docs" + path)
            JSON.parse(File.read("docs" + path))
          else
            raise "file not found: docs#{path}"
          end
        end

        @root.freeze
        @resources.freeze

        @operations = {}
      end

      attr_reader :root, :resources
<commit_msg>[TB] [78726180] remove @operations from loader<commit_after>module Rspec
  module Swagger
    class SwaggerLoader
      def initialize
        @root = JSON.parse(File.read("docs/swagger.json"))

        @resources = @root["apis"].map do |api|
          path = "#{api['path']}.json"

          if File.exists?("docs" + path)
            JSON.parse(File.read("docs" + path))
          else
            raise "file not found: docs#{path}"
          end
        end

        @root.freeze
        @resources.freeze
      end

      attr_reader :root, :resources

{'fraction_non_alphanumeric': 0.12556458897922312, 'fraction_numerical': 0.007226738934056007, 'mean_word_length': 1.8854166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1062771', 'n_tokens_mistral': 338, 'n_tokens_neox': 322, 'n_words': 76}