<commit_before># frozen_string_literal: true

RSpec.describe Pragma::Operation::Base do
  subject(:result) do
    operation_klass.call(
      { foo: 'bar' },
      { 'current_user_id' => 1 }
    )
  end

  let(:operation_klass) do
    Class.new(described_class) do
      step :process!

      def process!(_options)
        true
      end
    end
  end

  it 'runs correctly' do
    expect(result).to be_success
  end

  it 'sets up a default response' do
    expect(result['result.response']).to be_instance_of(Pragma::Operation::Response)
  end
end<commit_msg>Remove old default response test<commit_after># frozen_string_literal: true

RSpec.describe Pragma::Operation::Base do
  subject(:result) do
    operation_klass.call(
      { foo: 'bar' },
      { 'current_user_id' => 1 }
    )
  end

  let(:operation_klass) do
    Class.new(described_class) do
      step :process!

      def process!(_options)
        true
      end
    end
  end

  it 'runs correctly' do
    expect(result).to be_success
  end
end
{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.0019723865877712033, 'mean_word_length': 2.9038461538461537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4606841', 'n_tokens_mistral': 341, 'n_tokens_neox': 331, 'n_words': 81}