<commit_before>module DPL
  class Provider
    class Openshift < Provider
      requires 'httpclient', version: '~> 2.4.0'
      requires 'rhc'

      def initialize(context, options)
        super
        @deployment_branch = options[:deployment_branch]
      end

      def api
        @api ||= ::RHC::Rest::Client.new(:user => option(:user), :password => option(:password), :server => 'openshift.redhat.com')
      end

      def user
        @user ||= api.user.login
      end

      def app
        @app ||= api.find_application(option(:domain), option(:app))
      end

      def check_auth<commit_msg>Pin net-ssh to 2.9.x for OpenShift<commit_after>module DPL
  class Provider
    class Openshift < Provider
      requires 'httpclient', version: '~> 2.4.0'
      requires 'net-ssh',    load: 'net/ssh',    version: '~> 2.9.2' # Anything higher requires Ruby 2.x
      requires 'rhc'

      def initialize(context, options)
        super
        @deployment_branch = options[:deployment_branch]
      end

      def api
        @api ||= ::RHC::Rest::Client.new(:user => option(:user), :password => option(:password), :server => 'openshift.redhat.com')
      end

      def user
        @user ||= api.user.login
      end

      def app
        @app ||= api.find_application(option(:domain), option(:app))
      end

      def check_auth
{'fraction_non_alphanumeric': 0.13189269746646795, 'fraction_numerical': 0.00894187779433681, 'mean_word_length': 2.4347826086956523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '640388', 'n_tokens_mistral': 429, 'n_tokens_neox': 402, 'n_words': 101}