<commit_before>require 'spec_helper'

describe ProjectDownloaderWorker do
  let(:project) { create(:project, video_url: nil, goal: 3000) }
  let(:perform_project) { ProjectDownloaderWorker.perform_async(project.id) }

  before do
    CatarseSettings[:minumum_goal_for_video] = 5000
    Sidekiq::Testing.inline!

    project.video_url = 'http://vimeo.com/66698435'

    Project.any_instance.should_receive(:update_video_embed_url).and_call_original
    Project.any_instance.should_receive(:download_video_thumbnail)
  end<commit_msg>fixing typo in specs<commit_after>require 'spec_helper'

describe ProjectDownloaderWorker do
  let(:project) { create(:project, video_url: nil, goal: 3000) }
  let(:perform_project) { ProjectDownloaderWorker.perform_async(project.id) }

  before do
    CatarseSettings[:minimum_goal_for_video] = 5000
    Sidekiq::Testing.inline!

    project.video_url = 'http://vimeo.com/66698435'

    Project.any_instance.should_receive(:update_video_embed_url).and_call_original
    Project.any_instance.should_receive(:download_video_thumbnail)
  end
{'fraction_non_alphanumeric': 0.10084033613445378, 'fraction_numerical': 0.029878618113912233, 'mean_word_length': 6.1466666666666665, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3623108', 'n_tokens_mistral': 380, 'n_tokens_neox': 339, 'n_words': 48}