<commit_before>require 'pathname'
require 'dandelion/utils'

module Dandelion
  module Adapter
    class SFTP < Adapter::Base
      include ::Dandelion::Utils

      adapter 'sftp'
      requires_gems 'net-sftp'

      def initialize(config)
        require 'net/sftp'

        @config = config
        @config.defaults(preserve_permissions: true)

        @sftp = sftp_client
      end<commit_msg>Try to load highline when initializing SFTP adapter<commit_after>require 'pathname'
require 'dandelion/utils'

module Dandelion
  module Adapter
    class SFTP < Adapter::Base
      include ::Dandelion::Utils

      adapter 'sftp'
      requires_gems 'net-sftp'

      def initialize(config)
        begin
          require 'highline/import'
        rescue LoadError
        end
        
        require 'net/sftp'

        @config = config
        @config.defaults(preserve_permissions: true)

        @sftp = sftp_client
      end
{'fraction_non_alphanumeric': 0.07634408602150537, 'fraction_numerical': 0.0, 'mean_word_length': 2.422794117647059, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5874171', 'n_tokens_mistral': 299, 'n_tokens_neox': 274, 'n_words': 68}