<commit_before>require 'kramdown'
require 'forwardable'

module Everything
  class Blog
    class Post
      extend Forwardable

      def initialize(post_name)
        @post_name = post_name
      end

      def created_at
        timestamp_to_use = piece.metadata['created_at'] || piece.metadata['wordpress']['post_date']
        Time.at(timestamp_to_use)
      end

      def created_on
        # Formatted like: June 24, 2016
        created_at.strftime('%B %d, %Y')
      end

      def created_on_iso8601
        # Formatted like: 2016-06-24
        created_at.strftime('%F')
      end
<commit_msg>Add some todos about post created_at<commit_after>require 'kramdown'
require 'forwardable'

module Everything
  class Blog
    class Post
      extend Forwardable

      def initialize(post_name)
        @post_name = post_name
      end

      def created_at
        # TODO: If there is no timestamp, perhaps we want to say "Unknown" date?
        # Or should we raise an error if something doesn't have a timestamp?
        # TODO: Can we move to a created_on value in the YAML?
        # TODO: Remember, some posts were written in the east code timezone,
        # some in mountain time, and others in pacific time. This would be
        # simplified if we used the created_on as a date, since that's the
        # output we use anyway.
        timestamp_to_use = piece.metadata['created_at'] || piece.metadata['wordpress']['post_date']
        Time.at(timestamp_to_use)
      end

      def created_on
        # Formatted like: June 24, 2016
        created_at.strftime('%B %d, %Y')
      end

      def created_on_iso8601
        # Formatted like: 2016-06-24
        created_at.strftime('%F')
      end

{'fraction_non_alphanumeric': 0.07597895967270601, 'fraction_numerical': 0.02104032729398013, 'mean_word_length': 2.4516129032258065, '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': '4198414', 'n_tokens_mistral': 540, 'n_tokens_neox': 491, 'n_words': 164}