<commit_before>require 'spec_helper'

describe CycleAnalytics::Summary, models: true do
  let(:project) { create(:project) }
  let(:from) { Time.now }
  let(:user) { create(:user, :admin) }
  subject { described_class.new(project, from: from, user: user) }

  describe "#new_issues" do
    it "finds the number of issues created after the 'from date'" do
      Timecop.freeze(5.days.ago) { create(:issue, project: project) }<commit_msg>fix spec failure<commit_after>require 'spec_helper'

describe CycleAnalytics::Summary, models: true do
  let(:project) { create(:project) }
  let(:from) { Time.now }
  let(:user) { create(:user, :admin) }
  subject { described_class.new(project, from: from) }

  describe "#new_issues" do
    it "finds the number of issues created after the 'from date'" do
      Timecop.freeze(5.days.ago) { create(:issue, project: project) }
{'fraction_non_alphanumeric': 0.13904982618771727, 'fraction_numerical': 0.002317497103128621, 'mean_word_length': 4.7218543046357615, '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': '6530146', 'n_tokens_mistral': 279, 'n_tokens_neox': 272, 'n_words': 78}