<commit_before>module Owners
  # Accepts a single file and returns an array of OWNERS
  # files found when searching recursively up the directory
  # tree.
  #
  # @api private
  class Path
    CONFIG = 'OWNERS'

    attr_reader :file

    def initialize(file)
      @file = file
    end

    def configs
      configs = []
      file = @file

      until file.dirname == file
        file = file.dirname
        config = file.join(CONFIG)

        if config.exist? && !config.directory?
          configs << config
        end
      end

      configs
    end
  end
end<commit_msg>Swap conditional args for consistency<commit_after>module Owners
  # Accepts a single file and returns an array of OWNERS
  # files found when searching recursively up the directory
  # tree.
  #
  # @api private
  class Path
    CONFIG = 'OWNERS'

    attr_reader :file

    def initialize(file)
      @file = file
    end

    def configs
      configs = []
      file = @file

      until file == file.dirname
        file = file.dirname
        config = file.join(CONFIG)

        if config.exist? && !config.directory?
          configs << config
        end
      end

      configs
    end
  end
end
{'fraction_non_alphanumeric': 0.06902356902356903, 'fraction_numerical': 0.0, 'mean_word_length': 1.9503722084367245, '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': '7347020', 'n_tokens_mistral': 355, 'n_tokens_neox': 339, 'n_words': 117}