<commit_before># encoding: utf-8
module Pwnbox
  # RSA attacks
  module RSA
   def self.factorize_if_close_prime(n, trials = 65_536)
      bits = n.to_s(2).length
      sqrt = BigDecimal(n.to_s).sqrt(bits).to_i

      trials.times do |i|
        p = sqrt + i
        return [p, n / p] if n % p == 0
      end<commit_msg>Clean up<commit_after># encoding: utf-8
module Pwnbox
  # RSA attacks
  module RSA
    def self.factorize_if_close_prime(n, trials = 65_536)
      bits = n.to_s(2).length
      sqrt = BigDecimal(n.to_s).sqrt(bits).to_i

      trials.times do |i|
        p = sqrt + i
        return [p, n / p] if n % p == 0
      end
{'fraction_non_alphanumeric': 0.11635220125786164, 'fraction_numerical': 0.025157232704402517, 'mean_word_length': 2.233502538071066, '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': '3051530', 'n_tokens_mistral': 258, 'n_tokens_neox': 239, 'n_words': 64}