<commit_before>module Neo4j
  module ActiveRel

    # provides mapping of type to model name
    module Types
      extend ActiveSupport::Concern
      WRAPPED_CLASSES = {}

      included do |klazz|
        type self.name, true
      end

      module ClassMethods

        # @param type [String] sets the relationship type when creating relationships via this class
        def type(given_type = self.name, auto = false)
          use_type = auto ? "##{given_type.underscore.downcase}" : given_type
          mapped_type_name use_type
          @rel_type = use_type
        end

        # @return [String] a string representing the relationship type that will be created
        def _type
          @rel_type
        end

        def add_wrapped_class(type)
          _wrapped_classes[type.to_sym] = self.name
        end

        def _wrapped_classes
          Neo4j::ActiveRel::Types::WRAPPED_CLASSES
        end<commit_msg>downcase rel type in WRAPPED_CLASSES hash<commit_after>module Neo4j
  module ActiveRel

    # provides mapping of type to model name
    module Types
      extend ActiveSupport::Concern
      WRAPPED_CLASSES = {}

      included do |klazz|
        type self.name, true
      end

      module ClassMethods

        # @param type [String] sets the relationship type when creating relationships via this class
        def type(given_type = self.name, auto = false)
          use_type = auto ? "##{given_type.underscore.downcase}" : given_type
          mapped_type_name use_type
          @rel_type = use_type
        end

        # @return [String] a string representing the relationship type that will be created
        def _type
          @rel_type
        end

        def add_wrapped_class(type)
          _wrapped_classes[type.to_sym.downcase] = self.name
        end

        def _wrapped_classes
          Neo4j::ActiveRel::Types::WRAPPED_CLASSES
        end
{'fraction_non_alphanumeric': 0.05758055995773904, 'fraction_numerical': 0.0021130480718436345, 'mean_word_length': 2.2376068376068377, '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': '7531499', 'n_tokens_mistral': 556, 'n_tokens_neox': 518, 'n_words': 158}