<commit_before>require "logger"

module TerminDe
  class Loop
    # NOTE : We don't whant to be limited by service protection
    REQUEST_INTERVAL_IN_SECONDS = 120

    def initialize(options)
      @options = options
      @fails = 0

      @logger = Logger.new(STDOUT)
      @logger.datetime_format = "%Y-%m-%d %H:%M:%S"
      @logger.level = Logger::INFO
    end

    def run
      infinitly do
        calendar = Calendar.new(@options)

        if calendar.has_earlier?
          termin = calendar.earlier_termin
          @logger.info "Found new [#{termin.date}] → #{termin.link}"
<commit_msg>Fixed typo<commit_after>require "logger"

module TerminDe
  class Loop
    # NOTE : We don't want to be limited by service protection
    REQUEST_INTERVAL_IN_SECONDS = 120

    def initialize(options)
      @options = options
      @fails = 0

      @logger = Logger.new(STDOUT)
      @logger.datetime_format = "%Y-%m-%d %H:%M:%S"
      @logger.level = Logger::INFO
    end

    def run
      infinitly do
        calendar = Calendar.new(@options)

        if calendar.has_earlier?
          termin = calendar.earlier_termin
          @logger.info "Found new [#{termin.date}] → #{termin.link}"

{'fraction_non_alphanumeric': 0.10738255033557047, 'fraction_numerical': 0.006711409395973154, 'mean_word_length': 2.529585798816568, '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': '3267736', 'n_tokens_mistral': 396, 'n_tokens_neox': 363, 'n_words': 97}