<commit_before>class Dropset
  
  def self.calc(n)
    ( n.kind_of? Fixnum and n > 0 ) or raise ArgumentError
    (n * n / 2) + ( n / 2 ) + (n.odd? ? 1 : 0)
  end

end<commit_msg>changing the calculation to be more mathmatically correct, rather than using logic to correct the typecasting issues<commit_after>class Dropset
  
  def self.calc(n)
    ( n.kind_of? Fixnum and n > 0 ) or raise ArgumentError
    n = n.to_f
    ((n * n / 2) + ( n / 2 )).to_i
  end

end
{'fraction_non_alphanumeric': 0.10991379310344827, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 2.661417322834646, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7340728', 'n_tokens_mistral': 180, 'n_tokens_neox': 171, 'n_words': 59}