<commit_before># Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "rails_helper"

RSpec.feature "Cat Friends E2E" do
  before :all do
    skip "End-to-end test skipped" unless E2E.run?

    app_yaml      = File.expand_path("../../../app.yaml", __FILE__)
    configuration = File.read(app_yaml)

    configuration.sub! "[SECRET_KEY]",                    ENV["RAILS_SECRET_KEY_BASE"]
    configuration.sub! "[YOUR_INSTANCE_CONNECTION_NAME]", ENV["CLOUD_SQL_MYSQL_CONNECTION_NAME"]

    File.write app_yaml, configuration

    @url = E2E.url
  end

  scenario "should display a list of cats" do
    visit "/"

    expect(page).to have_content "A list of my Cats Ms. Paws is 2 years old! Mr. Whiskers is 4 years old!"
  end
end<commit_msg>Adding comment to cloud sql test.<commit_after># Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "rails_helper"

RSpec.feature "Cat Friends E2E" do
  before :all do
    skip "End-to-end test skipped" unless E2E.run?

    app_yaml      = File.expand_path("../../../app.yaml", __FILE__)
    configuration = File.read(app_yaml)

    configuration.sub! "[SECRET_KEY]",                    ENV["RAILS_SECRET_KEY_BASE"]
    configuration.sub! "[YOUR_INSTANCE_CONNECTION_NAME]", ENV["CLOUD_SQL_MYSQL_CONNECTION_NAME"]

    File.write app_yaml, configuration

    @url = E2E.url
  end

  scenario "should display a list of cats" do
    visit "/"

    # This test requires that the database contain Cat data found in fixtures.

    expect(page).to have_content "A list of my Cats Ms. Paws is 2 years old! Mr. Whiskers is 4 years old!"
  end
end
{'fraction_non_alphanumeric': 0.08921791951404708, 'fraction_numerical': 0.009870918754745633, 'mean_word_length': 3.5588235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1565303', 'n_tokens_mistral': 797, 'n_tokens_neox': 765, 'n_words': 308}