<commit_before># encoding: utf-8

require 'yaml'
require 'pathname'
require 'github_cli/vendor'
require 'github_api'
require 'github_cli/thor_ext'
require 'github_cli/version'
require 'github_cli/errors'

# Base module which adds Github API to the command line
module GithubCLI
  autoload :DSL,       'github_cli/dsl'
  autoload :Config,    'github_cli/config'
  autoload :CLI,       'github_cli/cli'
  autoload :Command,   'github_cli/command'
  autoload :API,       'github_cli/api'
  autoload :Terminal,  'github_cli/terminal'
  autoload :System,    'github_cli/system'
  autoload :Pager,     'github_cli/pager'
  autoload :Editor,    'github_cli/editor'
  autoload :Manpage,   'github_cli/manpage'
  autoload :Commands,  'github_cli/commands'
  autoload :Helpers,   'github_cli/helpers'
  autoload :Formatter, 'github_cli/formatter'
  autoload :Formatters,'github_cli/formatters'
  autoload :UI,        'github_cli/ui'
  autoload :Util,      'github_cli/util'

  require 'github_cli/apis'
  require 'github_cli/command/completion'
  require 'github_cli/command/usage'
  require 'github_cli/command/arguments'

  extend DSL

  program_name 'GitHub API v3 CLI client'

  class << self
    attr_writer :ui, :config

    def ui
      @ui ||= UI.new Thor::Shell::Basic.new
    end

    def executable_name
      File.basename($PROGRAM_NAME)
    end

    def default_configfile
      Helpers.default_configfile
    end

    def root
      default_configfile.expand_path
    end

    def config
      @config ||= GithubCLI::Config.new root
    end

    def commands
      @commands ||= GithubCLI::Command.all
    end
  end
end # GithubCLI<commit_msg>Expose terminal.<commit_after># encoding: utf-8

require 'yaml'
require 'pathname'
require 'github_cli/vendor'
require 'github_api'
require 'github_cli/thor_ext'
require 'github_cli/version'
require 'github_cli/errors'

# Base module which adds Github API to the command line
module GithubCLI
  autoload :DSL,       'github_cli/dsl'
  autoload :Config,    'github_cli/config'
  autoload :CLI,       'github_cli/cli'
  autoload :Command,   'github_cli/command'
  autoload :API,       'github_cli/api'
  autoload :Terminal,  'github_cli/terminal'
  autoload :System,    'github_cli/system'
  autoload :Pager,     'github_cli/pager'
  autoload :Editor,    'github_cli/editor'
  autoload :Manpage,   'github_cli/manpage'
  autoload :Commands,  'github_cli/commands'
  autoload :Helpers,   'github_cli/helpers'
  autoload :Formatter, 'github_cli/formatter'
  autoload :Formatters,'github_cli/formatters'
  autoload :UI,        'github_cli/ui'
  autoload :Util,      'github_cli/util'

  require 'github_cli/apis'
  require 'github_cli/command/completion'
  require 'github_cli/command/usage'
  require 'github_cli/command/arguments'

  extend DSL

  program_name 'GitHub API v3 CLI client'

  class << self
    attr_writer :ui, :config

    def ui
      @ui ||= UI.new Thor::Shell::Basic.new
    end

    def executable_name
      File.basename($PROGRAM_NAME)
    end

    def default_configfile
      Helpers.default_configfile
    end

    def root
      default_configfile.expand_path
    end

    def config
      @config ||= GithubCLI::Config.new root
    end

    def commands
      @commands ||= GithubCLI::Command.all
    end

    def terminal
      @terminal ||= GithubCLI::Terminal
    end
  end
end # GithubCLI
{'fraction_non_alphanumeric': 0.096045197740113, 'fraction_numerical': 0.0011894142134998512, 'mean_word_length': 3.4263157894736844, 'pattern_counts': {'":': 0, '<': 7, '<?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': '575038', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1160, 'n_words': 263}