<commit_before>module Dayone
	
  def self.cli_installed?
    `which dayone`.length > 0
  end

  #   options:
  #
  # date          - Creation date of the entry
  # starred       - Whether or not to star the entry
  # photo_path    - File path to a photo to attach to entry
  # journal_path  - Location of Day One Journal file
  #

  def self.create_post(post, options = {})
    return unless Dayone.cli_installed? && post && post.length > 0

    arguments = {
      :d => options[:date],
      :s => options[:starred],
      :p => options[:photo_path],
      :j => options[:journal_path]
    }.map { |k,v| "-#{k}=\"#{v}\"" unless !v }.compact.join(" ")

    `echo #{post} | dayone #{arguments} new`
  end

end<commit_msg>remove requirement for dayone post to not be an empty string, you can create a post that is just a photo<commit_after>module Dayone
	
  def self.cli_installed?
    `which dayone`.length > 0
  end

  #   options:
  #
  # date          - Creation date of the entry
  # starred       - Whether or not to star the entry
  # photo_path    - File path to a photo to attach to entry
  # journal_path  - Location of Day One Journal file
  #

  def self.create_post(post, options = {})
    return unless Dayone.cli_installed? && post

    arguments = {
      :d => options[:date],
      :s => options[:starred],
      :p => options[:photo_path],
      :j => options[:journal_path]
    }.map { |k,v| "-#{k}=\"#{v}\"" unless !v }.compact.join(" ")

    `echo #{post} | dayone #{arguments} new`
  end

end
{'fraction_non_alphanumeric': 0.13276089828269486, 'fraction_numerical': 0.0019815059445178335, 'mean_word_length': 2.556338028169014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '3492619', 'n_tokens_mistral': 502, 'n_tokens_neox': 480, 'n_words': 159}