<commit_before>module DataMapper
  module Types
    module Fixtures

      class Person
        #
        # Behaviors
        #

        include DataMapper::Resource

        #
        # Properties
        #

        property :id,         Serial
        property :name,       String
        property :positions,  Json
        property :inventions, Yaml

        property :interests, CommaSeparatedList

        property :password, <PASSWORD>
      end
    end
  end
end<commit_msg>Conditionally define property if the property type is available<commit_after>module DataMapper
  module Types
    module Fixtures

      class Person
        #
        # Behaviors
        #

        include DataMapper::Resource

        #
        # Properties
        #

        property :id,         Serial
        property :name,       String
        property :positions,  Json
        property :inventions, Yaml

        property :interests, CommaSeparatedList

        property :password, <PASSWORD> if defined?(DataMapper::Property::BCrypt<PASSWORD>)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.05545112781954887, 'fraction_numerical': 0.0, 'mean_word_length': 1.751937984496124, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2064085', 'n_tokens_mistral': 278, 'n_tokens_neox': 262, 'n_words': 77}