<commit_before>class RouteElement < ActiveRecord::Base
  ELEMENT_ACTIONS = ['none', 'match', 'not_match', 'set']

  attr_accessible :call_route_id, :var_in, :var_out, :pattern, :replacement, :action, :mandatory, :position

  belongs_to :call_route

  acts_as_list :scope => :call_route

  validates :var_in,
            :presence => true

  validates :pattern,
            :presence => true

  validates :action,
            :presence => true,
            :inclusion => { :in => ELEMENT_ACTIONS }


  def to_s
    "#{var_in} #{var_out}"<commit_msg>validations removed<commit_after>class RouteElement < ActiveRecord::Base
  ELEMENT_ACTIONS = ['none', 'match', 'not_match', 'set']

  attr_accessible :call_route_id, :var_in, :var_out, :pattern, :replacement, :action, :mandatory, :position

  belongs_to :call_route

  acts_as_list :scope => :call_route

  validates :action,
            :presence => true,
            :inclusion => { :in => ELEMENT_ACTIONS }


  def to_s
    "#{var_in} #{var_out}"
{'fraction_non_alphanumeric': 0.13440320962888666, 'fraction_numerical': 0.0, 'mean_word_length': 3.663551401869159, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4793801', 'n_tokens_mistral': 347, 'n_tokens_neox': 336, 'n_words': 74}