<commit_before><commit_msg>Add manual run integration test<commit_after>require 'test_helper'

class ManualRunTest< ActionDispatch::IntegrationTest
  def test_running_commits_manually
    @repo = create(:repo)

    ManualRunner.any_instance.expects(:run_last).with(100)

    post(admin_repo_run_path(@repo.name), params: { count: 100 })
  end
end

{'fraction_non_alphanumeric': 0.10086455331412104, 'fraction_numerical': 0.01729106628242075, 'mean_word_length': 6.404255319148936, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5090687', 'n_tokens_mistral': 118, 'n_tokens_neox': 109, 'n_words': 20}