<commit_before>class RubyGem < ActiveRecord::Base
  validates :name, presence: true
  validates :version, presence: true
  validates :version, format: { with: /\A\d+.\d+.\d+\z/, message: "x.y.z format" }<commit_msg>fix version regexp validation for gems<commit_after>class RubyGem < ActiveRecord::Base
  validates :name, presence: true
  validates :version, presence: true
  validates :version, format: { with:  /\A\d+[.\d+.]*\z/, message: "x.y.z format" }
{'fraction_non_alphanumeric': 0.1600877192982456, 'fraction_numerical': 0.0, 'mean_word_length': 4.573170731707317, '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': '5862861', 'n_tokens_mistral': 158, 'n_tokens_neox': 153, 'n_words': 43}