<commit_before># Define a function isPrime that takes one integer argument and
# returns true or false depending on if the integer is a prime.
# A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

# Example
# isPrime(5)
# => true

# def isPrime(num)
#   return false if num <= 1
#   Math.sqrt(num).to_i.downto(2).each {|i| return false if num % i == 0}
#   true
# end


# require 'prime'

# def isPrime(num)
#   num.prime?
# end


# def isPrime(num)
#   return false if num <= 1
#   return true if num < 4
#   (2...num).each do |i|
#      return false if num % i == 0
#    end
#   true
# end<commit_msg>add another algo for isprime<commit_after># Define a function isPrime that takes one integer argument and
# returns true or false depending on if the integer is a prime.
# A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

# Example
# isPrime(5)
# => true

# def isPrime(num)
#   return false if num <= 1
#   Math.sqrt(num).to_i.downto(2).each {|i| return false if num % i == 0}
#   true
# end


# require 'prime'

# def isPrime(num)
#   num.prime?
# end


# def isPrime(num)
#   return false if num <= 1
#   return true if num < 4
#   (2...num).each do |i|
#      return false if num % i == 0
#    end
#   true
# end

# def isPrime(num)
#   return false if num < 2
#   return true if num == 2

#   (2..(num-1)).none? { |i| num % i == 0 }
# end
{'fraction_non_alphanumeric': 0.11813186813186813, 'fraction_numerical': 0.017170329670329672, 'mean_word_length': 2.8957219251336896, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 5, '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': '3602432', 'n_tokens_mistral': 534, 'n_tokens_neox': 497, 'n_words': 207}