<commit_before># coding: utf-8

# Get help on the term environment.
module Mysh

  # Get help on the term environment.
  class TermInfoCommand < Action

    #Execute the @term shell command.
    def process_command(_args)
      print WORKING unless @ran_once

      puts "Key term information.", "",
           info.format_mysh_bullets, ""

      @ran_once = true
    end

    private

    # Get the info
    # Endemic Code Smells :reek:UtilityFunction
    def info
      [["code page", if MiniTerm.windows?; (`chcp`); end],<commit_msg>Added version info for @term<commit_after># coding: utf-8

# Get help on the term environment.
module Mysh

  # Get help on the term environment.
  class TermInfoCommand < Action

    #Execute the @term shell command.
    def process_command(_args)
      print WORKING unless @ran_once

      puts "Key term information.", "",
           info.format_mysh_bullets, ""

      @ran_once = true
    end

    private

    # Get the info
    # Endemic Code Smells :reek:UtilityFunction
    def info
      [["about",     MiniReadline::DESCRIPTION],
       ["version",   MiniReadline::VERSION],
       ["installed", Gem::Specification.find_all_by_name("mini_readline")
                                       .map{|s| s.version.to_s}
                                       .join(", ")],
       ["about",     MiniTerm::DESCRIPTION],
       ["version",   MiniTerm::VERSION],
       ["installed", Gem::Specification.find_all_by_name("mini_term")
                                       .map{|s| s.version.to_s}
                                       .join(", ")],
       ["latest",    Gem.latest_version_for("mini_term").to_s],
       ["code page", if MiniTerm.windows?; (`chcp`); end],
{'fraction_non_alphanumeric': 0.11410181392627268, 'fraction_numerical': 0.0011702750146284377, 'mean_word_length': 2.1376146788990824, 'pattern_counts': {'":': 0, '<': 5, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '657121', 'n_tokens_mistral': 502, 'n_tokens_neox': 489, 'n_words': 133}