<commit_before>module Fernet
  class Secret
    def initialize(secret, encrypt)
      @secret  = secret
      @encrypt = encrypt
    end

    def encryption_key
      @secret.byteslice(@secret.bytesize/2, @secret.bytesize)
    end

    def signing_key
      if @encrypt
        @secret.byteslice(0, @secret.bytesize/2)
      else
        @secret
      end
    end
  end
end<commit_msg>Ruby < 1.9.3 compat<commit_after>module Fernet
  class Secret
    def initialize(secret, encrypt)
      @secret  = secret
      @encrypt = encrypt
    end

    def encryption_key
      @secret.slice(@secret.size/2, @secret.size)
    end

    def signing_key
      if @encrypt
        @secret.slice(0, @secret.size/2)
      else
        @secret
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.011904761904761904, 'mean_word_length': 2.0772357723577235, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5483305', 'n_tokens_mistral': 254, 'n_tokens_neox': 242, 'n_words': 59}