<commit_before>module RailsTables
  module Renderers
    def link_to_object(object)
      property = object.try(:send, column_name)
      link_to property, object if not property.nil?
    end
    def link_to_objects(objects)
      objects.reject(&:blank?).map{ |object| related_link(object).strip }.join(', ') if not objects.nil?
    end

    def time(object)
      property = object.try(:send, column_name)
      property.strftime("%I:%M%p") if not property.nil?
    end
    def date(object)
      property = object.try(:send, column_name)
      property.strftime("%m/%d/%Y") if not property.nil?
    end
    def datetime(object)
      property = object.try(:send, column_name)
      property.strftime("%m/%d/%Y at %I:%M%p") if not property.nil?
    end

    def currency(object)
      property = object.try(:send, column_name)
      number_to_currency(property.to_f) if not property.nil?
    end
    def phone(object)
      property = object.try(:send, column_name)
      number_to_phone(property.to_f) if not property.nil?
    end

    def truncate(object)
      property = object.try(:send, column_name)
      truncate(property, 50) if not property.nil?
    end
  end
end<commit_msg>Update internal render method reference<commit_after>module RailsTables
  module Renderers
    def link_to_object(object)
      property = object.try(:send, column_name)
      link_to property, object if not property.nil?
    end
    def link_to_objects(objects)
      objects.reject(&:blank?).map{ |object| link_to_object(object).strip }.join(', ') if not objects.nil?
    end

    def time(object)
      property = object.try(:send, column_name)
      property.strftime("%I:%M%p") if not property.nil?
    end
    def date(object)
      property = object.try(:send, column_name)
      property.strftime("%m/%d/%Y") if not property.nil?
    end
    def datetime(object)
      property = object.try(:send, column_name)
      property.strftime("%m/%d/%Y at %I:%M%p") if not property.nil?
    end

    def currency(object)
      property = object.try(:send, column_name)
      number_to_currency(property.to_f) if not property.nil?
    end
    def phone(object)
      property = object.try(:send, column_name)
      number_to_phone(property.to_f) if not property.nil?
    end

    def truncate(object)
      property = object.try(:send, column_name)
      truncate(property, 50) if not property.nil?
    end
  end
end
{'fraction_non_alphanumeric': 0.11656952539550375, 'fraction_numerical': 0.0016652789342214821, 'mean_word_length': 3.150259067357513, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4034260', 'n_tokens_mistral': 775, 'n_tokens_neox': 756, 'n_words': 185}