<commit_before>module Swagger
  module Docs
    class SwaggerDSL
      # http://stackoverflow.com/questions/5851127/change-the-context-binding-inside-a-block-in-ruby/5851325#5851325
      def self.call(action, caller, &block)
        # Create a new SwaggerDSL instance, and instance_eval the block to it
        instance = new
        instance.instance_eval(&block)
        # Now return all of the set instance variables as a Hash
        instance.instance_variables.inject({}) { |result_hash, instance_variable|
          result_hash[instance_variable] = instance.instance_variable_get(instance_variable)
          result_hash # Gotta have the block return the result_hash
        }
      end

      def summary(text)
        @summary = text
      end

      def method(method)
        @method = method
      end

      def type(type)
        @type = type
      end

      def nickname(nickname)
        @nickname = nickname<commit_msg>Update dsl.rb<commit_after>module Swagger
  module Docs
    class SwaggerDSL
      # http://stackoverflow.com/questions/5851127/change-the-context-binding-inside-a-block-in-ruby/5851325#5851325
      def self.call(action, caller, &block)
        # Create a new SwaggerDSL instance, and instance_eval the block to it
        instance = new
        instance.instance_eval(&block)
        # Now return all of the set instance variables as a Hash
        instance.instance_variables.inject({}) { |result_hash, instance_variable|
          result_hash[instance_variable] = instance.instance_variable_get(instance_variable)
          result_hash # Gotta have the block return the result_hash
        }
      end

      def summary(text)
        @summary = text
      end
      
      def notes(text)
        @notes = text
      end

      def method(method)
        @method = method
      end

      def type(type)
        @type = type
      end

      def nickname(nickname)
        @nickname = nickname
{'fraction_non_alphanumeric': 0.07390180878552971, 'fraction_numerical': 0.021705426356589147, 'mean_word_length': 2.361111111111111, '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': '5684435', 'n_tokens_mistral': 577, 'n_tokens_neox': 534, 'n_words': 145}