<commit_before>#
# Copyright 2012-2014 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'omnibus/core_extensions'

require 'pathname'
require 'json'

require 'omnibus/exceptions'
require 'omnibus/version'

module Omnibus
  #
  # The path to the default configuration file.
  #
  # @return [String]
  #
  DEFAULT_CONFIG = 'omnibus.rb'.freeze

  autoload :Builder,          'omnibus/builder'
  autoload :BuildVersion,     'omnibus/build_version'
  autoload :BuildVersionDSL,  'omnibus/build_version_dsl'
  autoload :Cleaner,          'omnibus/cleaner'
  autoload :Cleanroom,        'omnibus/cleanroom'
  autoload :Config,           'omnibus/config'
  autoload :Digestable,       'omnibus/digestable'
  autoload :Error,            'omnibus/exceptions'
  autoload :Fetcher,          'omnibus/fetcher'
  autoload :FileSyncer,       'omnibus/file_syncer'
  autoload :Generator,        'omnibus/generator'
  autoload :GitCache,         'omnibus/git_cache'
  autoload :HealthCheck,      'omnibus/health_check'
  autoload :Instrumentation,  'omnibus/instrumentation'
  autoload :Library,          'omnibus/library'
  autoload :Logger,           'omnibus/logger'
  autoload :Logging,          'omnibus/logging'
  autoload :NullArgumentable, 'omnibus/null_argumentable'
  autoload :Ohai,             'omnibus/ohai'
  autoload :Package,          'omnibus/package'
  autoload :Project,          'omnibus/project'
  autoload :Publisher,        'omnibus/publisher'
  autoload :Reports,          'omnibus/reports'
  autoload :S3Cache,          'omnibus/s3_cache'
  autoload :Software,         'omnibus/software'
  autoload :Sugarable,        'omnibus/sugarable'
  autoload :Util,             'omnibus/util'

  autoload :GitFetcher,     'omnibus/fetchers/git_fetcher'
  autoload :NetFetcher,     'omnibus/fetchers/net_fetcher'
  autoload :NullFetcher,    'omnibus/fetchers/null_fetcher'
  autoload :PathFetcher,    'omnibus/fetchers/path_fetcher'

  autoload :ArtifactoryPublisher, 'omnibus/publishers/artifactory_publisher'
  autoload :NullPublisher,        'omnibus/publishers/null_publisher'
  autoload :S3Publisher,          'omnibus/publishers/s3_publisher'

  module Command
    autoload :Base,    'omnibus/cli/base'
    autoload :Cache,   'omnibus/cli/cache'
    autoload :Publish, 'omnibus/cli/publish'
  end

  module Packager
    autoload :Base,       'omnibus/packagers/base'
    autoload :BFF,        'omnibus/packagers/bff'
    autoload :MacDmg,     'omnibus/packagers/mac_dmg'
    autoload :MacPkg,     'omnibus/packagers/mac_pkg'
    autoload :Makeself,   'omnibus/packagers/makeself'
    autoload :MSI,        'omnibus/packagers/msi'
    autoload :Pkgmk,      'omnibus/packagers/pkgmk'
    autoload :RPM,        'omnibus/packagers/rpm'
  end

  class << self
    #
    # Reset the current Omnibus configuration. This is primary an internal API
    # used in testing, but it can also be useful when Omnibus is used as a
    # library.
    #
    # Note - this persists the +Logger+ object by default.
    #<commit_msg>Add note about MacDmg really being a compressor<commit_after>#
# Copyright 2012-2014 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'omnibus/core_extensions'

require 'pathname'
require 'json'

require 'omnibus/exceptions'
require 'omnibus/version'

module Omnibus
  #
  # The path to the default configuration file.
  #
  # @return [String]
  #
  DEFAULT_CONFIG = 'omnibus.rb'.freeze

  autoload :Builder,          'omnibus/builder'
  autoload :BuildVersion,     'omnibus/build_version'
  autoload :BuildVersionDSL,  'omnibus/build_version_dsl'
  autoload :Cleaner,          'omnibus/cleaner'
  autoload :Cleanroom,        'omnibus/cleanroom'
  autoload :Config,           'omnibus/config'
  autoload :Digestable,       'omnibus/digestable'
  autoload :Error,            'omnibus/exceptions'
  autoload :Fetcher,          'omnibus/fetcher'
  autoload :FileSyncer,       'omnibus/file_syncer'
  autoload :Generator,        'omnibus/generator'
  autoload :GitCache,         'omnibus/git_cache'
  autoload :HealthCheck,      'omnibus/health_check'
  autoload :Instrumentation,  'omnibus/instrumentation'
  autoload :Library,          'omnibus/library'
  autoload :Logger,           'omnibus/logger'
  autoload :Logging,          'omnibus/logging'
  autoload :NullArgumentable, 'omnibus/null_argumentable'
  autoload :Ohai,             'omnibus/ohai'
  autoload :Package,          'omnibus/package'
  autoload :Project,          'omnibus/project'
  autoload :Publisher,        'omnibus/publisher'
  autoload :Reports,          'omnibus/reports'
  autoload :S3Cache,          'omnibus/s3_cache'
  autoload :Software,         'omnibus/software'
  autoload :Sugarable,        'omnibus/sugarable'
  autoload :Util,             'omnibus/util'

  autoload :GitFetcher,     'omnibus/fetchers/git_fetcher'
  autoload :NetFetcher,     'omnibus/fetchers/net_fetcher'
  autoload :NullFetcher,    'omnibus/fetchers/null_fetcher'
  autoload :PathFetcher,    'omnibus/fetchers/path_fetcher'

  autoload :ArtifactoryPublisher, 'omnibus/publishers/artifactory_publisher'
  autoload :NullPublisher,        'omnibus/publishers/null_publisher'
  autoload :S3Publisher,          'omnibus/publishers/s3_publisher'

  module Command
    autoload :Base,    'omnibus/cli/base'
    autoload :Cache,   'omnibus/cli/cache'
    autoload :Publish, 'omnibus/cli/publish'
  end

  module Packager
    autoload :Base,       'omnibus/packagers/base'
    autoload :BFF,        'omnibus/packagers/bff'
    autoload :MacPkg,     'omnibus/packagers/mac_pkg'
    autoload :Makeself,   'omnibus/packagers/makeself'
    autoload :MSI,        'omnibus/packagers/msi'
    autoload :Pkgmk,      'omnibus/packagers/pkgmk'
    autoload :RPM,        'omnibus/packagers/rpm'

    # TODO - this is really a "compressor"
    autoload :MacDmg, 'omnibus/packagers/mac_dmg'
  end

  class << self
    #
    # Reset the current Omnibus configuration. This is primary an internal API
    # used in testing, but it can also be useful when Omnibus is used as a
    # library.
    #
    # Note - this persists the +Logger+ object by default.
    #
{'fraction_non_alphanumeric': 0.09301675977653631, 'fraction_numerical': 0.004469273743016759, 'mean_word_length': 3.139306358381503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6366457', 'n_tokens_mistral': 2622, 'n_tokens_neox': 2459, 'n_words': 583}