<commit_before>class ExportedPlan < ActiveRecord::Base
  attr_accessible :plan_id, :user_id, :format
  
  #associations between tables
  belongs_to :plan
  belongs_to :user

  VALID_FORMATS = %i( html text xml json pdf csv )

  validates :format, inclusion: { in: VALID_FORMATS, message: '%{value} is not a valid format' }

  # Store settings with the exported plan so it can be recreated later
  # if necessary (otherwise the settings associated with the plan at a
  # given time can be lost)<commit_msg>Put valid export formats in alphabetical order<commit_after>class ExportedPlan < ActiveRecord::Base
  attr_accessible :plan_id, :user_id, :format
  
  #associations between tables
  belongs_to :plan
  belongs_to :user

  VALID_FORMATS = %i( csv html json pdf text xml )

  validates :format, inclusion: { in: VALID_FORMATS, message: '%{value} is not a valid format' }

  # Store settings with the exported plan so it can be recreated later
  # if necessary (otherwise the settings associated with the plan at a
  # given time can be lost)
{'fraction_non_alphanumeric': 0.06903163950143816, 'fraction_numerical': 0.0, 'mean_word_length': 4.409326424870466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3714607', 'n_tokens_mistral': 317, 'n_tokens_neox': 300, 'n_words': 129}