<commit_before>require 'optparse'
require 'shellwords'
require 'fileutils'

module QED

  def self.main(*argv)
    Command.main(*argv)
  end

  # = QED Commandline Tool
  #
  # TODO: Merge Command with Session ?
  class Command

    # Configuration directory `.qed`, `.config/qed` or `config/qed`.
    # In this directory special configuration files can be placed
    # to autmatically effect qed execution. In particular you can
    # add a `profiles.yml` file to setup convenient execution
    # scenarios.
    CONFIG_PATTERN = "{.,.config/,config/}qed"

    # Default location of demonstrations if no specific files
    # or locations given. This is use in Dir.glob. The default
    # locations are qed/, demo/ or demos/, searched for in that
    # order relative to the root directory.
    #--
    # TODO: deprecate this auto lookup?
    #++
    DEMO_LOCATION = '{qed,demo,demos}'

    # Glob pattern used to search for project's root directory.
    ROOT_PATTERN = '{.ruby,.git,.hg,_darcs,.qed,.config/qed,config/qed}/'

    # Directory names to omit from automatic selection.
    OMIT_PATHS = %w{applique helpers support sample samples fixture fixtures}

    # Home directory.
    HOME = File.expand_path('~')
<commit_msg>.ruby root indicator is not a directory<commit_after>require 'optparse'
require 'shellwords'
require 'fileutils'

module QED

  def self.main(*argv)
    Command.main(*argv)
  end

  # = QED Commandline Tool
  #
  # TODO: Merge Command with Session ?
  class Command

    # Configuration directory `.qed`, `.config/qed` or `config/qed`.
    # In this directory special configuration files can be placed
    # to autmatically effect qed execution. In particular you can
    # add a `profiles.yml` file to setup convenient execution
    # scenarios.
    CONFIG_PATTERN = "{.,.config/,config/}qed"

    # Default location of demonstrations if no specific files
    # or locations given. This is use in Dir.glob. The default
    # locations are qed/, demo/ or demos/, searched for in that
    # order relative to the root directory.
    #--
    # TODO: deprecate this auto lookup?
    #++
    DEMO_LOCATION = '{qed,demo,demos}'

    # Glob pattern used to search for project's root directory.
    ROOT_PATTERN = '{.ruby,.git/,.hg/,_darcs/,.qed/,.config/qed/,config/qed/}'

    # Directory names to omit from automatic selection.
    OMIT_PATHS = %w{applique helpers support sample samples fixture fixtures}

    # Home directory.
    HOME = File.expand_path('~')

{'fraction_non_alphanumeric': 0.1006036217303823, 'fraction_numerical': 0.0, 'mean_word_length': 3.164154103852596, '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': '4509167', 'n_tokens_mistral': 770, 'n_tokens_neox': 726, 'n_words': 262}