<commit_before>module ShellMock
  RSpec.describe StubRegistry do
    describe '.stub_matching' do
      before { StubRegistry.clear }

      context "when the stub doesn't specify env vars" do
        let!(:stub) { ShellMock.stub_command('ls') }
<commit_msg>StubRegistry tests weren't cleaning up after themselves<commit_after>module ShellMock
  RSpec.describe StubRegistry do
    describe '.stub_matching' do
      after { StubRegistry.clear }

      context "when the stub doesn't specify env vars" do
        let!(:stub) { ShellMock.stub_command('ls') }

{'fraction_non_alphanumeric': 0.08797127468581688, 'fraction_numerical': 0.0, 'mean_word_length': 3.689075630252101, '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': '5613142', 'n_tokens_mistral': 164, 'n_tokens_neox': 161, 'n_words': 48}