<commit_before>require 'rails_helper'

describe ArchivesController, "#index", type: :controller do
  context "when user is logged in" do
    let(:user)         { User.create! bank_accounts: [bank_account] }
    let(:bank_account) { BankAccount.create! archives: archives }
    let(:archives)     { Array.new(12) { |month| Archive.create(year: Date.today.year, month: month+1) }}

    before { sign_in user }

    it "sets @archives" do
      get :index
      expect(assigns[:archives]).to match_array archives
    end<commit_msg>formatting<commit_after>require 'rails_helper'

describe ArchivesController, "#index", type: :controller do
  context "when user is logged in" do
    let(:user)         { User.create! bank_accounts: [bank_account] }
    let(:bank_account) { BankAccount.create! archives: archives }
    let(:archives)     { Array.new(12) { |month| Archive.create(year: Date.today.year, month: month + 1) }}

    before { sign_in user }

    it "sets @archives" do
      get :index
      expect(assigns[:archives]).to match_array archives
    end
{'fraction_non_alphanumeric': 0.12298959318826869, 'fraction_numerical': 0.005676442762535478, 'mean_word_length': 3.7022222222222223, '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': '2357555', 'n_tokens_mistral': 343, 'n_tokens_neox': 321, 'n_words': 86}