<commit_before># Datacenter model
#
#  id: integer
#  name: string
#  description: text
#  created_at: datetime
#  updated_at: datetime
#  rack_prefix: string
#  max_floors: integer
#  max_rows_per_floor: integer
#  max_cells_per_row: integer
#  has_many :rack_locations (class_name :DatacenterRackLocation)
#  has_many :racks (through :rack_locations)
#
# A datacenter has many racks, each at a certain
# unique position (floor, row, cell). The attributes
# :rack_prefix, :max_floors, :max_rows_per_floor and
# :max_cells_per_row are used for generating rack
# labels in the DatacenterRack model.

class Datacenter < ActiveRecord::Base
  include RocketPants::Cacheable

  DEFAULTS = {
    max_floors: 16,
    max_rows_per_floor: 16,
    max_cells_per_row: 16
  }

  def initialize(attributes = {})
    attr_with_defaults = DEFAULTS.merge(attributes)<commit_msg>docs are now covered by yard<commit_after>class Datacenter < ActiveRecord::Base
  include RocketPants::Cacheable

  DEFAULTS = {
    max_floors: 16,
    max_rows_per_floor: 16,
    max_cells_per_row: 16
  }

  def initialize(attributes = {})
    attr_with_defaults = DEFAULTS.merge(attributes)
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.01038961038961039, 'mean_word_length': 4.8979591836734695, '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': '1039310', 'n_tokens_mistral': 418, 'n_tokens_neox': 393, 'n_words': 96}