<commit_before># Tag {#hosts_tags assigned} to {#hosts}.  Tags can be used to group together hosts for targeting and reporting.
class Mdm::Tag < ActiveRecord::Base
  include Metasploit::Model::Search

  TAG_CHAR_VALIDATION_MSG = "Tag names can only contain alphanumeric characters, dots, dashes, and underscores."

  TAG_LENGTH_VALIDATION_MSG = "desc must be less than 8k."
  #
  # Associations
  #

  # Joins {#hosts} to this tag.
  has_many :hosts_tags,
           class_name: 'Mdm::HostTag',
           dependent: :destroy,
           inverse_of: :tag

  # User that created this tag.
  belongs_to :user,
             class_name: 'Mdm::User',
             inverse_of: :tags
<commit_msg>remove superfluous constants MSP-10957<commit_after># Tag {#hosts_tags assigned} to {#hosts}.  Tags can be used to group together hosts for targeting and reporting.
class Mdm::Tag < ActiveRecord::Base
  include Metasploit::Model::Search

  #
  # Associations
  #

  # Joins {#hosts} to this tag.
  has_many :hosts_tags,
           class_name: 'Mdm::HostTag',
           dependent: :destroy,
           inverse_of: :tag

  # User that created this tag.
  belongs_to :user,
             class_name: 'Mdm::User',
             inverse_of: :tags

{'fraction_non_alphanumeric': 0.0975609756097561, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 3.009771986970684, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6137958', 'n_tokens_mistral': 404, 'n_tokens_neox': 373, 'n_words': 118}