<commit_before>require File.expand_path(File.dirname(__FILE__) + '/../../vendor/isaac/crypt/ISAAC.rb')

module Castronaut
  class RandomString
    MagicNumber = 4294619050
    
    def self.generate(max_length = 29)
      isaac = ::Crypt::ISAAC.new
      random_numbers = [isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber)]
                        
      random_string = "#{Time.now.to_i}r%X%X%X%X%X%X%X%X" % random_numbers
      random_string[0..max_length-1]
    end
    
  end
end<commit_msg>Formatting<commit_after>require File.expand_path(File.dirname(__FILE__) + '/../../vendor/isaac/crypt/ISAAC.rb')

module Castronaut
  class RandomString
    MagicNumber = 4_294_619_050
    
    def self.generate(max_length = 29)
      isaac = ::Crypt::ISAAC.new
      random_numbers = [isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber), 
                        isaac.rand(MagicNumber)]
                        
      random_string = "#{Time.now.to_i}r%X%X%X%X%X%X%X%X" % random_numbers
      random_string[0..max_length-1]
    end
    
  end
end
{'fraction_non_alphanumeric': 0.10989010989010989, 'fraction_numerical': 0.017094017094017096, 'mean_word_length': 1.5974643423137875, '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': '5085419', 'n_tokens_mistral': 563, 'n_tokens_neox': 469, 'n_words': 59}