<commit_before>module RailsAdmin
  module Models
    module Setup
      module SmtpProviderAdmin
        extend ActiveSupport::Concern

        included do
          rails_admin do
            navigation_label 'Security'
            parent ::Setup::BaseOauthProvider
            object_label_method { :custom_title }
            weight 331
            label 'SMTP Provider'

            configure :address, :string do
              label 'SMTP Host'
              required true
            end

            configure :enable_starttls_auto, :boolean do
              label 'Auto Start TLS'
            end

            edit do
              field :namespace
              field :name
              field :address
              field :port do
                required true
              end
              field :domain, :string
              field :enable_starttls_auto
            end

            fields :namespace, :name, :address, :port, :domain, :enable_starttls_auto<commit_msg>SMTP provider namespace config<commit_after>module RailsAdmin
  module Models
    module Setup
      module SmtpProviderAdmin
        extend ActiveSupport::Concern

        included do
          rails_admin do
            navigation_label 'Security'
            parent ::Setup::BaseOauthProvider
            object_label_method { :custom_title }
            weight 331
            label 'SMTP Provider'

            configure :namespace, :enum_edit

            configure :address, :string do
              label 'SMTP Host'
              required true
            end

            configure :enable_starttls_auto, :boolean do
              label 'Auto Start TLS'
            end

            edit do
              field :namespace
              field :name
              field :address
              field :port do
                required true
              end
              field :domain, :string
              field :enable_starttls_auto
            end

            fields :namespace, :name, :address, :port, :domain, :enable_starttls_auto
{'fraction_non_alphanumeric': 0.045880611741489885, 'fraction_numerical': 0.0029600394671928957, 'mean_word_length': 1.3858823529411766, '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': '5623069', 'n_tokens_mistral': 476, 'n_tokens_neox': 442, 'n_words': 147}