<commit_before># Replace Fixtures.identify for binary UUIDs.
module GoldRecord
  module Fixtures
    def self.included(base)
      base.class_eval do
        def self.identify(label)
          UUIDTools::UUID.sha1_create(UUIDTools::UUID_DNS_NAMESPACE, label.to_s).raw
        end
      end
    end
  end
end
<commit_msg>Change Fixtures.identify to mimic MySQL’s binary(16) representation of integer input.<commit_after>module GoldRecord
  module Fixtures
    def self.included(base)
      base.class_eval do
        class << self
          # Patch Fixtures.identify for binary UUIDs.
          def identify_with_padding(label)
            "%-16d" % identify_without_padding(label)
          end
          alias_method_chain :identify, :padding
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0663265306122449, 'fraction_numerical': 0.006377551020408163, 'mean_word_length': 2.5520361990950224, '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': '6930691', 'n_tokens_mistral': 241, 'n_tokens_neox': 236, 'n_words': 60}