<commit_before>ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  #
  # Note: You'll currently still have to declare fixtures explicitly in integration tests
  # -- they do not yet inherit this setting
  fixtures :users, :accounts, :categories, :transactions

  # Add more helper methods to be used by all tests here...
  def setup
    session[:user_id] = users(:thomas).id if defined? session
    @user = users(:thomas)
    @accounts = @user.accounts
  end

  def logout
    session.delete :user_id
  end

  def wrong_user
    users(:emilie)
  end
end
<commit_msg>accounts have to be active<commit_after>ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  fixtures :users, :accounts, :categories, :transactions, :schedules

  # Add more helper methods to be used by all tests here...
  def setup
    session[:user_id] = users(:thomas).id if defined? session
    @user = users(:thomas)
    @accounts = @user.accounts.active
  end

  def logout
    session.delete :user_id
  end

  def wrong_user
    users(:emilie)
  end
end

{'fraction_non_alphanumeric': 0.10806916426512968, 'fraction_numerical': 0.0, 'mean_word_length': 3.8229166666666665, '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': '7617668', 'n_tokens_mistral': 441, 'n_tokens_neox': 424, 'n_words': 140}