<commit_before>require "bytes_converter/version"

module BytesConverter

  # default available values
  @sizes = {
      "k" => 1024,
      "m" => 1024*1024,
      "g" => 1024*1024*1024,
      "t" => 1024*1024*1024*1024
    }

  # method converting size into bytes
  def self.convert size

    # replacing comma with dot
    size_converted = size.downcase.gsub(',','.')<commit_msg>might as well do petabytes too<commit_after>require "bytes_converter/version"

module BytesConverter

  # default available values
  @sizes = {
      "k" => 1024,
      "m" => 1024*1024,
      "g" => 1024*1024*1024,
      "t" => 1024*1024*1024*1024,
      "p" => 1024*1024*1024*1024*1024
    }

  # method converting size into bytes
  def self.convert size

    # replacing comma with dot
    size_converted = size.downcase.gsub(',','.')
{'fraction_non_alphanumeric': 0.1356968215158924, 'fraction_numerical': 0.12224938875305623, 'mean_word_length': 3.074626865671642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '4082999', 'n_tokens_mistral': 365, 'n_tokens_neox': 268, 'n_words': 66}