<commit_before>require 'rails_helper'

feature "Browsing the website" do
  scenario "User visits the landing page" do
    visit '/'
    expect(page).to have_text("Give us your data")
  end

  scenario "User clicks get started button and is redirected to account creation page" do
    visit '/'
    click_link "Create API"

    expect(page).to have_text("Confirm Password")
  end

  scenario "User can visit the 'About Us' page" do
    visit '/'
    click_link "About Us"
    expect(page.current_path).to eq("/about_us")
  end

  scenario "User can visit the 'Contact Us' page" do
    visit '/'
    click_link "Contact Us"
    expect(page.current_path).to eq("/contact_us")
  end

  scenario "User can visit the FAQs page" do
    visit '/'
    click_link "FAQs"
    expect(page.current_path).to eq("/faqs")
  end

end

feature "Signing in" do
  background do
    User.create(name: "TheGreek", email: "<EMAIL>", organization_id: 1, password: 'password', password_confirmation: 'password')
  end

  scenario "Signing in with the correct credentials" do
    visit "/sessions/new"

    page.fill_in "session_email", with: "<EMAIL>"
    page.fill_in "session_password", with: "password"
    click_button "Login"

    expect(page.current_path).to eq("/services/new")
  end

  scenario "Signing in with incorrect credentials" do
    visit "/sessions/new"

    page.fill_in "session_email", with: "<EMAIL>"
    page.fill_in "session_password", with: "<PASSWORD>"
    click_button "Login"

    expect(page).to have_text("Create a New User")
  end
end

feature "Creating an account" do
end

feature "Uploading an API" do
end

feature "Retrieving data from API endpoints" do
end


<commit_msg>added feature folder and three integration tests<commit_after>require 'rails_helper'

feature "Browsing the website" do
  scenario "User visits the landing page" do
    visit '/'
    expect(page).to have_text("Give us your data")
  end

  scenario "User clicks get started button and is redirected to account creation page" do
    visit '/'
    click_link "Create API"

    expect(page).to have_text("Confirm Password")
  end

  scenario "User can visit the 'About Us' page" do
    visit '/'
    click_link "About Us"
    expect(page.current_path).to eq("/about_us")
  end

  scenario "User can visit the 'Contact Us' page" do
    visit '/'
    click_link "Contact Us"
    expect(page.current_path).to eq("/contact_us")
  end

  scenario "User can visit the FAQs page" do
    visit '/'
    click_link "FAQs"
    expect(page.current_path).to eq("/faqs")
  end

end

feature "Signing in" do
  background do
    User.create(name: "TheGreek", email: "<EMAIL>", organization_id: 1, password: 'password', password_confirmation: 'password')
  end

  scenario "Signing in with the correct credentials" do
    visit "/sessions/new"

    page.fill_in "session_email", with: "<EMAIL>"
    page.fill_in "session_password", with: "password"
    click_button "Login"

    expect(page.current_path).to eq("/services/new")
  end

  scenario "Signing in with incorrect credentials" do
    visit "/sessions/new"

    page.fill_in "session_email", with: "<EMAIL>"
    page.fill_in "session_password", with: "<PASSWORD>"
    click_button "Login"

    expect(page).to have_text("Create a New User")
  end
end

feature "Creating an account" do
end

feature "Uploading an API" do
end

feature "Retrieving data from API endpoints" do
end


end

{'fraction_non_alphanumeric': 0.10702734489855925, 'fraction_numerical': 0.0005880623346074683, 'mean_word_length': 3.6475409836065573, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2341799', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1066, 'n_words': 359}