<commit_before># encoding: utf-8

module GithubCLI
  # This class provides methods for reading system settings.
  class System
    class << self

      # Checks if windows platform.
      def windows?
        require 'rbconfig'
        RbConfig::CONFIG['host_os'] =~ /msdos|mswin|djgpp|mingw|windows/
      end

      # Finds executable in $PATH.
      def which(command)
        exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
        ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
          exts.each do |ext|
            exec = "#{path}/#{command}/#{ext}"
            return exec if File.executable? exec
          end
        end
        return nil
      end

      # Checks if command exists.
      def command?(name)
        !which(name).nil?
      end

    end
  end # System
end # GithubCLI<commit_msg>Change the reference to process exec command.<commit_after># encoding: utf-8

module GithubCLI
  # This class provides methods for reading system settings.
  class System
    class << self

      # Checks if windows platform.
      def windows?
        require 'rbconfig'
        RbConfig::CONFIG['host_os'] =~ /msdos|mswin|djgpp|mingw|windows/
      end

      # Finds executable in $PATH.
      def which(command)
        exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
        ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
          exts.each do |ext|
            exe = "#{path}/#{command}#{ext}"
            return exe if File.executable? exe
          end
        end
        return nil
      end

      # Checks if command exists.
      def command?(name)
        !which(name).nil?
      end

    end
  end # System
end # GithubCLI
{'fraction_non_alphanumeric': 0.11652794292508918, 'fraction_numerical': 0.0011890606420927466, 'mean_word_length': 2.0994475138121547, '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': '3709381', 'n_tokens_mistral': 534, 'n_tokens_neox': 516, 'n_words': 141}