<commit_before>describe EntryFilter do
  it "sets params" do
    filter = EntryFilter.new({ client_id: 1 })

    expect(filter.client_id).to eq(1)
  end

  it "#clients" do
    filter = EntryFilter.new
    expect(Client).to receive(:by_name)
    filter.clients
  end

  it "#users" do
    filter = EntryFilter.new
    expect(User).to receive(:by_name)
    filter.users
  end

  it "#projects" do
    filter = EntryFilter.new
    expect(Project).to receive(:by_name)
    filter.projects
  end

  it "#billed_options" do
    filter = EntryFilter.new<commit_msg>Assert methods return correct values<commit_after>describe EntryFilter do
  it "sets params" do
    filter = EntryFilter.new({ client_id: 1 })

    expect(filter.client_id).to eq(1)
  end

  it "#clients" do
    filter = EntryFilter.new

    client1 = create(:client, name: "Zack")
    client2 = create(:client, name: "Andy")
    clients = [client2, client1]

    expect(filter.clients).to eq clients
  end

  it "#users" do
    filter = EntryFilter.new

    user1 = create(:user, last_name: "Simpson")
    user2 = create(:user, last_name: "Burns")
    users = [user2, user1]

    expect(filter.users).to eq users
  end

  it "#projects" do
    filter = EntryFilter.new

    project1 = create(:project, name: "Learning Spaces")
    project2 = create(:project, name: "Defacto")
    projects = [project2, project1]

    expect(filter.projects).to eq projects
  end

  it "#billed_options" do
    filter = EntryFilter.new
{'fraction_non_alphanumeric': 0.11442112389979689, 'fraction_numerical': 0.010832769126607989, 'mean_word_length': 3.2471264367816093, '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': '4870341', 'n_tokens_mistral': 498, 'n_tokens_neox': 475, 'n_words': 129}