<commit_before>require 'sparkle_formation'

class SparkleFormation
  module Provider
    module Heat

      def self.included(klass)
        klass.const_set(
          :DEFAULT_STACK_RESOURCE,
          'OS::Heat::Stack'
        )
        klass.const_set(
          :VALID_STACK_RESOURCES,
          'OS::Heat::Stack'
        )
      end

      # Generate policy for stack
      #
      # @return [Hash]
      def generate_policy
        {}
      end

      # Apply deeply nested stacks. This is the new nesting approach and
      # does not bubble parameters up to the root stack. Parameters are
      # isolated to the stack resource itself and output mapping is
      # automatically applied.
      #
      # @yieldparam stack [SparkleFormation] stack instance
      # @yieldparam resource [AttributeStruct] the stack resource<commit_msg>Set custom serialization type<commit_after>require 'sparkle_formation'

class SparkleFormation
  module Provider
    module Heat

      def self.included(klass)
        klass.const_set(
          :DEFAULT_STACK_RESOURCE,
          'OS::Heat::Stack'
        )
        klass.const_set(
          :VALID_STACK_RESOURCES,
          'OS::Heat::Stack'
        )
        klass.const_set(
          :STACK_SERIALIZATION_FORMAT,
          :yaml
        )
      end

      # Generate policy for stack
      #
      # @return [Hash]
      def generate_policy
        {}
      end

      # Apply deeply nested stacks. This is the new nesting approach and
      # does not bubble parameters up to the root stack. Parameters are
      # isolated to the stack resource itself and output mapping is
      # automatically applied.
      #
      # @yieldparam stack [SparkleFormation] stack instance
      # @yieldparam resource [AttributeStruct] the stack resource
{'fraction_non_alphanumeric': 0.06375838926174497, 'fraction_numerical': 0.0, 'mean_word_length': 2.1330998248686517, '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': '1352350', 'n_tokens_mistral': 497, 'n_tokens_neox': 471, 'n_words': 147}