<commit_before>module ErrbitPlugin
  class FakeIssueTracker < IssueTracker
    def self.label
      'fake'
    end

    def self.note
      'A fake issue tracker to help in testing purpose'
    end

    def self.fields
      {
        :foo => {:label => 'foo'},
        :bar => {:label => 'bar'}
      }
    end

    def configured?
      errors.any?
    end

    def errors
      errors = {}
      errors[:foo] = 'foo is required' unless params[:foo]
      errors[:bar] = 'bar is required' unless params[:bar]

      errors
    end

    def create_issue; true; end

    def url; ''; end

    def comments_allowed?; false; end
  end
end

ErrbitPlugin::Registry.add_issue_tracker(ErrbitPlugin::FakeIssueTracker)
<commit_msg>more sensible fake issue tracker<commit_after>module ErrbitPlugin
  class FakeIssueTracker < IssueTracker
    def self.label
      'fake'
    end

    def self.note
      'A fake issue tracker to help in testing purpose'
    end

    def self.fields
      {
        :foo => {:label => 'foo'},
        :bar => {:label => 'bar'}
      }
    end

    def configured?
      !errors.any?
    end

    def errors
      errors = {}
      errors[:foo] = 'foo is required' unless params[:foo]
      errors[:bar] = 'bar is required' unless params[:bar]

      errors
    end

    def create_issue(problem, reported_by=nil); true; end

    def url; ''; end

    def comments_allowed?; false; end
  end
end

ErrbitPlugin::Registry.add_issue_tracker(ErrbitPlugin::FakeIssueTracker)

{'fraction_non_alphanumeric': 0.10254691689008043, 'fraction_numerical': 0.0, 'mean_word_length': 2.393181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2752605', 'n_tokens_mistral': 470, 'n_tokens_neox': 443, 'n_words': 135}