<commit_before>module OrganicSitemap
  class RedisManager
    def self.add(key)
      OrganicSitemap.redis_connection.zadd(OrganicSitemap.redis_key
                                          Time.now.to_i + OrganicSitemap.expiry_time,
                                          key)
    end

    def self.clean_set(time = Time.now)
      OrganicSitemap.redis_connection.zremrangebyscore(OrganicSitemap.redis_key,
                                                       "-inf",
                                                       time.to_i)
    end

    def self.sitemap_urls(from: nil, to: nil)
      from = from ? from.to_time.to_i : '-inf'
      to = to ? to.to_time.to_i : '+inf'
      OrganicSitemap.redis_connection.zrangebyscore(OrganicSitemap.redis_key,
                                                    from,
                                                    to)
    end
  end
end
<commit_msg>Fix error with comma<commit_after>module OrganicSitemap
  class RedisManager
    def self.add(key)
      OrganicSitemap.redis_connection.zadd(OrganicSitemap.redis_key,
                                          Time.now.to_i + OrganicSitemap.expiry_time,
                                          key)
    end

    def self.clean_set(time = Time.now)
      OrganicSitemap.redis_connection.zremrangebyscore(OrganicSitemap.redis_key,
                                                       "-inf",
                                                       time.to_i)
    end

    def self.sitemap_urls(from: nil, to: nil)
      from = from ? from.to_time.to_i : '-inf'
      to = to ? to.to_time.to_i : '+inf'
      OrganicSitemap.redis_connection.zrangebyscore(OrganicSitemap.redis_key,
                                                    from,
                                                    to)
    end
  end
end

{'fraction_non_alphanumeric': 0.06765676567656766, 'fraction_numerical': 0.0, 'mean_word_length': 1.125, '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': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3501816', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 77}