<commit_before>require 'rails_helper'

describe CommentsController do

  before(:each) do
    controller.class.skip_before_filter :prepare_notifications # This filter introduses method call noise that we can ignore for this spec.

    allow(controller).to receive(:ensure_set_up).and_return(true)
    allow(controller).to receive(:ensure_organisation_exists).and_return(true)
    allow(controller).to receive(:ensure_authenticated).and_return(true)
    allow(controller).to receive(:ensure_member_active_or_pending).and_return(true)
    allow(controller).to receive(:ensure_organisation_active).and_return(true)
    allow(controller).to receive(:ensure_member_inducted).and_return(true)
  end

  context "when nested in proposals" do
    describe "POST create" do

      let(:proposal) { mock_model(Proposal) }

      before(:each) do
        allow(proposal).to receive(:to_param).and_return('1')
<commit_msg>Remove a method stub for a method that no longer exists.<commit_after>require 'rails_helper'

describe CommentsController do

  before(:each) do
    controller.class.skip_before_filter :prepare_notifications # This filter introduses method call noise that we can ignore for this spec.

    allow(controller).to receive(:ensure_set_up).and_return(true)
    allow(controller).to receive(:ensure_organisation_exists).and_return(true)
    allow(controller).to receive(:ensure_authenticated).and_return(true)
    allow(controller).to receive(:ensure_member_active_or_pending).and_return(true)
    allow(controller).to receive(:ensure_member_inducted).and_return(true)
  end

  context "when nested in proposals" do
    describe "POST create" do

      let(:proposal) { mock_model(Proposal) }

      before(:each) do
        allow(proposal).to receive(:to_param).and_return('1')

{'fraction_non_alphanumeric': 0.09876543209876543, 'fraction_numerical': 0.001122334455667789, 'mean_word_length': 5.507299270072993, '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': '5207255', 'n_tokens_mistral': 521, 'n_tokens_neox': 504, 'n_words': 110}