<commit_before>require "xmldsign/xmldsign_ext"

module Xmldsign
  module Digests
    class Gost
      attr_reader :data

      class << self
        def base64(data)
          new(data).base64
        end
        def hex(data)
          new(data).hex
        end
      end

      def initialize(data)
        @data = data
      end
<commit_msg>fix NULL pointer exception. data must be a string<commit_after>require "xmldsign/xmldsign_ext"

module Xmldsign
  module Digests
    class Gost
      attr_reader :data

      class << self
        def base64(data)
          new(data).base64
        end
        def hex(data)
          new(data).hex
        end
      end

      def initialize(data)
        @data = data.to_s
      end

{'fraction_non_alphanumeric': 0.06584362139917696, 'fraction_numerical': 0.010973936899862825, 'mean_word_length': 1.6937269372693726, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1656413', 'n_tokens_mistral': 236, 'n_tokens_neox': 227, 'n_words': 60}