<commit_before>class Hbc::DSL::Appcast

  # todo  :latest_version is considered experimental
  #       and may be removed

  attr_reader :parameters, :sha256, :latest_version

  def initialize(uri, parameters={})
    @parameters     = parameters
    @uri            = Hbc::UnderscoreSupportingURI.parse(uri)
    @sha256         = @parameters[:sha256]
    @latest_version = @parameters[:latest_version]    # experimental
  end

  def to_yaml
    [@uri, @parameters].to_yaml
  end

  def to_s
    @uri.to_s
  end
end<commit_msg>appcast.rb: appcast-sha256 to appcast-checkpoint<commit_after>class Hbc::DSL::Appcast

  # todo  :latest_version is considered experimental
  #       and may be removed

  attr_reader :parameters, :checkpoint, :latest_version, :sha256

  def initialize(uri, parameters={})
    @parameters     = parameters
    @uri            = Hbc::UnderscoreSupportingURI.parse(uri)
    @checkpoint     = @parameters[:checkpoint]
    @latest_version = @parameters[:latest_version]    # experimental
    @sha256         = @parameters[:sha256] # DEPRECATED
  end

  def to_yaml
    [@uri, @parameters].to_yaml
  end

  def to_s
    @uri.to_s
  end
end
{'fraction_non_alphanumeric': 0.09913793103448276, 'fraction_numerical': 0.01810344827586207, 'mean_word_length': 3.2218181818181817, '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': '1422028', 'n_tokens_mistral': 388, 'n_tokens_neox': 359, 'n_words': 82}