<commit_before>class ProjectDecorator < Draper::Decorator
  decorates :project
  include Draper::LazyHelpers

  def show_city
    if source.city.present?
      source.city.show_name
    elsif source.account && source.account.address_city.present? && source.account.address_state.present?
      "#{source.account.address_city.capitalize}, #{source.account.address_state} "
    elsif source.user.address_city.present? && source.user.address_state.present?
      "#{source.user.address_city.capitalize}, #{source.user.address_state} "
    end
  end

  def elapsed_time
    get_interval_from_db "elapsed_time_json"
  end

  def time_to_go<commit_msg>remove account reference<commit_after>class ProjectDecorator < Draper::Decorator
  decorates :project
  include Draper::LazyHelpers

  def show_city
    if source.city.present?
      source.city.show_name
    elsif source.user.address_city.present? && source.user.address_state.present?
      "#{source.user.address_city.capitalize}, #{source.user.address_state} "
    end
  end

  def elapsed_time
    get_interval_from_db "elapsed_time_json"
  end

  def time_to_go
{'fraction_non_alphanumeric': 0.09613656783468104, 'fraction_numerical': 0.0, 'mean_word_length': 4.304761904761905, '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': '1347187', 'n_tokens_mistral': 370, 'n_tokens_neox': 359, 'n_words': 59}