<commit_before>require "thor"
module GitReleaseNotes
  class CLI < Thor
    include Thor::Actions

    desc "html", "Generates an HTML release notes document showing all commits between two refs\n" +
		 "including commits within submodules"
    method_option :from,
		   desc: "SHA, tag, or other tree-ish reference for the start of the range",
		   banner: "SHA, tag, or other tree-ish reference for the start of the range",
		   type: :string,
		   required: true,
		   aliases: "-f"
    method_option :to,
		   desc: "SHA, tag, or other tree-ish reference for the end of the range",
		   banner: "SHA, tag, or other tree-ish reference for the end of the range",
		   type: :string,
		   required: true,
		   aliases: "-t"
    method_option :git_web_url,
		   desc: "URL of the root repository, used to create links in the generated HTML doc",
		   banner: "URL of the root repository, used to create links in the generated HTML doc",
		   type: :string,
		   default: "https://github.com/cloudfoundry/cf-release",
		   aliases: "-u"
    method_option :exclude_submodules_without_changes,
		   desc: "Exclude showing submodules in HTML doc if there are 0 commits to it in the given range",
		   banner: "Exclude showing submodules in HTML doc if there are 0 commits to it in the given range",
		   type: :boolean,
		   default: false,
		   aliases: "-e"

    def html
      puts GitParentRange.new(
	options[:from],<commit_msg>Update CLI banners<commit_after>require "thor"
module GitReleaseNotes
  class CLI < Thor
    include Thor::Actions

    desc "html", "Generates an HTML release notes document showing all commits between two refs\n" +
		 "including commits within submodules"
    method_option :from,
		   desc: "SHA, tag, or other tree-ish reference for the start of the range",
		   banner: "TREEISH",
		   type: :string,
		   required: true,
		   aliases: "-f"
    method_option :to,
		   desc: "SHA, tag, or other tree-ish reference for the end of the range",
		   banner: "TREEISH",
		   type: :string,
		   required: true,
		   aliases: "-t"
    method_option :git_web_url,
		   desc: "URL of the root repository, used to create links in the generated HTML doc",
		   banner: "URL",
		   type: :string,
		   default: "https://github.com/cloudfoundry/cf-release",
		   aliases: "-u"
    method_option :exclude_submodules_without_changes,
		   desc: "Exclude showing submodules in HTML doc if there are 0 commits to it in the given range",
		   type: :boolean,
		   default: false,
		   aliases: "-e"

    def html
      puts GitParentRange.new(
	options[:from],
{'fraction_non_alphanumeric': 0.09041521148622429, 'fraction_numerical': 0.0011641443538998836, 'mean_word_length': 3.1248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2617805', 'n_tokens_mistral': 851, 'n_tokens_neox': 749, 'n_words': 312}