<commit_before>require "swagger_parser/schema"
require "swagger_parser/source_based_object"
require "swagger_parser/swagger"

module SwaggerParser
  class Definitions < SourceBasedObject
    include Enumerable

    # @note Implementation for Enumerable
    def each(&block)
      source.each do |key, value|
        block.call([key, SwaggerParser::Schema.new(value)])
      end
    end

    # @param [String]
    # @return [SwaggerParser::Schema, nil]<commit_msg>Remove unnecessary line<commit_after>require "swagger_parser/schema"
require "swagger_parser/source_based_object"

module SwaggerParser
  class Definitions < SourceBasedObject
    include Enumerable

    # @note Implementation for Enumerable
    def each(&block)
      source.each do |key, value|
        block.call([key, SwaggerParser::Schema.new(value)])
      end
    end

    # @param [String]
    # @return [SwaggerParser::Schema, nil]
{'fraction_non_alphanumeric': 0.09413067552602436, 'fraction_numerical': 0.0, 'mean_word_length': 4.022222222222222, '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': '6939235', 'n_tokens_mistral': 273, 'n_tokens_neox': 262, 'n_words': 63}