<commit_before>require 'ftpmvc/filter/base'
require 'ftpmvc/gpg/input'
require 'gpgme'

module FTPMVC
  module Filter
    class Gpg < FTPMVC::Filter::Base
      def initialize(fs, chain, options={})
        super fs, chain
        @crypto = GPGME::Crypto.new(
          password: options[:<PASSWORD>phrase], recipients: options[:recipients], always_trust: true)
        import_keys(options[:keys]) if options.include?(:keys)
      end
<commit_msg>Adding pinetry mode<commit_after>require 'ftpmvc/filter/base'
require 'ftpmvc/gpg/input'
require 'gpgme'

module FTPMVC
  module Filter
    class Gpg < FTPMVC::Filter::Base
      def initialize(fs, chain, options={})
        super fs, chain
        @crypto = GPGME::Crypto.new(
          password: options[:<PASSWORD>], recipients: options[:recipients],
          always_trust: true, pinentry_mode: GPGME::PINENTRY_MODE_LOOPBACK
        )
        import_keys(options[:keys]) if options.include?(:keys)
      end

{'fraction_non_alphanumeric': 0.12095933263816476, 'fraction_numerical': 0.0, 'mean_word_length': 3.5714285714285716, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4004616', 'n_tokens_mistral': 315, 'n_tokens_neox': 302, 'n_words': 68}