<commit_before>require 'fog/core/model'

module Fog
  module Identity
    class OpenStackCommon
      class User < Fog::Model
        identity :id

        attribute :name
        attribute :tenant_id, :aliases => 'tenantId'
        attribute :password
        attribute :email
        attribute :enabled

        attr_accessor :name, :tenant_id, :password, :email, :enabled

        def save
          # raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
          requires :name, :tenant_id, :password
          enabled = true if enabled.nil?<commit_msg>handle nil? as Kyle suggested<commit_after>require 'fog/core/model'

module Fog
  module Identity
    class OpenStackCommon
      class User < Fog::Model
        identity :id

        attribute :name
        attribute :tenant_id, :aliases => 'tenantId'
        attribute :password
        attribute :email
        attribute :enabled

        attr_accessor :name, :tenant_id, :password, :email, :enabled

        def save
          # raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
          requires :name, :tenant_id, :password
          enabled ||= true
{'fraction_non_alphanumeric': 0.08374792703150911, 'fraction_numerical': 0.0, 'mean_word_length': 2.55, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4732100', 'n_tokens_mistral': 324, 'n_tokens_neox': 323, 'n_words': 105}