<commit_before>require 'spec_helper'

describe ContributionsController do
  let!(:user) { FactoryGirl.create(:user) }


  describe "#index" do
    before { session[:user_id] = user.id }
    it "sets instance variable with all incomplete stories" do
      get :index
      expect(assigns(:stories)).to eq(Stories.where(complete: false))  # opposite controller.assign
    end<commit_msg>changed story typo<commit_after>require 'spec_helper'

describe ContributionsController do
  let!(:user) { FactoryGirl.create(:user) }


  describe "#index" do
    before { session[:user_id] = user.id }
    it "sets instance variable with all incomplete stories" do
      get :index
      expect(assigns(:stories)).to eq(Story.where(complete: false))  # opposite controller.assign
    end
{'fraction_non_alphanumeric': 0.10866752910737387, 'fraction_numerical': 0.0, 'mean_word_length': 4.26530612244898, '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': '5449926', 'n_tokens_mistral': 230, 'n_tokens_neox': 216, 'n_words': 61}