<commit_before>module ExploreMars
  class Photo
    attr_reader :src, :sol, :camera

    def initialize(src, sol, camera)
      @src = src
      @sol = sol
      @camera = camera
    end

    def to_s
      @src
    end
  end
end
<commit_msg>Add earth_date method to Photo class<commit_after>module ExploreMars
  class Photo
    attr_reader :src, :sol, :camera

    LANDING_DATE = DateTime.new(2012,8,6,5,17,57)
    SOL_IN_SECONDS = 88775.244

    def initialize(src, sol, camera)
      @src = src
      @sol = sol
      @camera = camera
    end

    def to_s
      @src
    end

    def earth_date
      date = LANDING_DATE + (@sol.to_i * SOL_IN_SECONDS).seconds
      date.strftime("%b %e, %Y")
    end
  end
end

{'fraction_non_alphanumeric': 0.09230769230769231, 'fraction_numerical': 0.026573426573426574, 'mean_word_length': 2.314814814814815, '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': '4407859', 'n_tokens_mistral': 277, 'n_tokens_neox': 256, 'n_words': 69}