<commit_before>module Sync

  class Channel

    attr_accessor :name

    def initialize(name)
      self.name = name
    end

    def signature
      OpenSSL::HMAC.hexdigest(
        OpenSSL::Digest::Digest.new('sha1'),
        Sync.auth_token,
        self.name
      )
    end

    def to_s
      Sync.client.normalize_channel(self.signature)
    end
  end
end<commit_msg>OpenSSL::Digest::Digest deprecated, fixes deprecation warnings<commit_after>module Sync

  class Channel

    attr_accessor :name

    def initialize(name)
      self.name = name
    end

    def signature
      OpenSSL::HMAC.hexdigest(
        OpenSSL::Digest.new('sha1'),
        Sync.auth_token,
        self.name
      )
    end

    def to_s
      Sync.client.normalize_channel(self.signature)
    end
  end
end
{'fraction_non_alphanumeric': 0.08217446270543616, 'fraction_numerical': 0.0025284450063211127, 'mean_word_length': 2.2863070539419086, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2838562', 'n_tokens_mistral': 268, 'n_tokens_neox': 248, 'n_words': 51}