<commit_before>require 'test_helper'
require 'api_test'

class TestExecutionsControllerTest < ActionController::TestCase
  include Devise::TestHelpers
  include ActiveJob::TestHelper
  include ApiTest

  setup do
    collection_fixtures('vendors', 'products', 'product_tests', 'tasks', 'test_executions', 'users', 'roles',
                        'bundles', 'measures', 'health_data_standards_svs_value_sets', 'artifacts',
                        'records', 'patient_populations')
    @vendor = Vendor.find(EHR1)
    @first_product = @vendor.products.first
    @first_product.bundle = Bundle.default
    @first_product.save
    @first_test = @first_product.product_tests.first
    @first_task = @first_test.tasks.first
    @first_execution = @first_task.test_executions.first
  end
<commit_msg>Stopped using 'first' in a couple of places in text_executions_controller_test (#458)<commit_after>require 'test_helper'
require 'api_test'

class TestExecutionsControllerTest < ActionController::TestCase
  include Devise::TestHelpers
  include ActiveJob::TestHelper
  include ApiTest

  setup do
    collection_fixtures('vendors', 'products', 'product_tests', 'tasks', 'test_executions', 'users', 'roles',
                        'bundles', 'measures', 'health_data_standards_svs_value_sets', 'artifacts',
                        'records', 'patient_populations')
    @vendor = Vendor.find(EHR1)
    @first_product = @vendor.products.where(name: 'Vendor 1 Product 1').first
    @first_product.bundle = Bundle.default
    @first_product.save
    @first_test = @first_product.product_tests.where(name: 'vendor1 product1 test1').first
    @first_task = @first_test.tasks.first
    @first_execution = @first_task.test_executions.first
  end

{'fraction_non_alphanumeric': 0.10796766743648961, 'fraction_numerical': 0.005773672055427252, 'mean_word_length': 4.315950920245399, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6883496', 'n_tokens_mistral': 531, 'n_tokens_neox': 516, 'n_words': 101}