<commit_before>class DatabaseBackup < ApplicationRecord
  SUPPORTED_DEPOTS = {
    'smb'   => 'Samba',
    'nfs'   => 'Network File System',
    's3'    => 'AWS S3',
    'swift' => 'OpenStack Swift'
  }.freeze

  def self.supported_depots
    SUPPORTED_DEPOTS
  end

  def self.backup(options)
    create.backup(options)
  end

  def self.gc(options)
    create.gc(options)
  end
<commit_msg>DatabaseBackup.supported_depots: Use model names rather than prefixes<commit_after>class DatabaseBackup < ApplicationRecord
  SUPPORTED_DEPOTS = %w[FileDepotSmb FileDepotNfs FileDepotS3 FileDepotSwift].freeze

  def self.supported_depots
    SUPPORTED_DEPOTS.map { |model| [model, model.constantize.display_name] }.to_h
  end

  def self.backup(options)
    create.backup(options)
  end

  def self.gc(options)
    create.gc(options)
  end

{'fraction_non_alphanumeric': 0.09975961538461539, 'fraction_numerical': 0.003605769230769231, 'mean_word_length': 3.9, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3840310', 'n_tokens_mistral': 309, 'n_tokens_neox': 288, 'n_words': 59}