<commit_before>require "bulldoggy/version"

require 'bulldoggy/entities/task'
require 'bulldoggy/repository'

#require 'bulldoggy/use_cases/task_adder'
#require 'bulldoggy/use_cases/task_checker'
#require 'bulldoggy/use_cases/task_unchecker'
#require 'bulldoggy/use_cases/tasks_fetcher'
#require 'bulldoggy/use_cases/task_remover'

Dir['./lib/bulldoggy/use_cases/*.rb'].each {|file| require file }

Bulldoggy::Repository.register :task, Bulldoggy::Repositories::InMemory::Tasks.new

module Bulldoggy
  class << self
    def add_task(description)
      UseCases::TaskAdder.new.add(description)
    end

    def remove_task(task_id)
      UseCases::TaskRemover.new.remove(task_id)
    end

    def fetch
      UseCases::TasksFetcher.new.fetch
    end
<commit_msg>simplify the requires on use cases<commit_after>require "bulldoggy/version"

require 'bulldoggy/entities/task'
require 'bulldoggy/repository'

Dir[File.dirname(__FILE__) + "/bulldoggy/use_cases/**/*.rb"].each { |file| require file }

Bulldoggy::Repository.register :task, Bulldoggy::Repositories::InMemory::Tasks.new

module Bulldoggy
  class << self
    def add_task(description)
      UseCases::TaskAdder.new.add(description)
    end

    def remove_task(task_id)
      UseCases::TaskRemover.new.remove(task_id)
    end

    def fetch
      UseCases::TasksFetcher.new.fetch
    end

{'fraction_non_alphanumeric': 0.11598513011152416, 'fraction_numerical': 0.0, 'mean_word_length': 4.852173913043479, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5239195', 'n_tokens_mistral': 486, 'n_tokens_neox': 483, 'n_words': 74}