<commit_before>class String
    def is_i?
       /\A[-+]?\d+\z/ === self
    end
end

class CalculatedValue < ActiveRecord::Base
  belongs_to :study, :foreign_key => 'nct_id'

  def create_from(new_study)
    puts "OOOOOOOOOOOOOOOOOOO  CalculatedValue.create_from...."
    stime=Time.now
    self.study=new_study
    self.start_date                = study.start_month_year.try(:to_date)<commit_msg>remove puts<commit_after>class String
    def is_i?
       /\A[-+]?\d+\z/ === self
    end
end

class CalculatedValue < ActiveRecord::Base
  belongs_to :study, :foreign_key => 'nct_id'

  def create_from(new_study)
    stime=Time.now
    self.study=new_study
    self.start_date                = study.start_month_year.try(:to_date)
{'fraction_non_alphanumeric': 0.12191780821917808, 'fraction_numerical': 0.0, 'mean_word_length': 3.0386740331491713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '901424', 'n_tokens_mistral': 281, 'n_tokens_neox': 262, 'n_words': 45}