<commit_before># SitePrism
[![Gem Version](https://badge.fury.io/rb/site_prism.svg)](https://badge.fury.io/rb/site_prism)
[![Build Status](https://travis-ci.org/natritmeyer/site_prism.png)](https://travis-ci.org/natritmeyer/site_prism)

_A Page Object Model DSL for Capybara_

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern,
for use with Capybara in automated acceptance testing.

Find the pretty documentation here: http://rdoc.info/gems/site_prism/frames

Make sure to add your project/company to https://github.com/natritmeyer/site_prism/wiki/Who-is-using-SitePrism

## Developing / Contributing to SitePrism

We love it when people want to get involved with our Open Source Project.

We have a brief set of setup docs [HERE](https://github.com/natritmeyer/site_prism/blob/master/development_setup.md)

## Supported Rubies / Browsers

SitePrism is built and tested to work on Ruby 2.4 - 2.6. Ruby 2.3 (Now EOL), is supported but not tested against.
If you are using SitePrism with Ruby 2.3 it is highly advisable to upgrade to a more modern Ruby
such as 2.5 or 2.6, if for any other reason, to get a noticeable speed boost!

SitePrism should run on all major browsers. The gem's integration tests are ran on Chrome and Firefox.

If you find you cannot integrate nicely with SitePrism, please open an
[issue request](https://github.com/natritmeyer/site_prism/issues/new)

## Synopsis

Here's an overview of how SitePrism is designed to be used:

```ruby
# define our site's pages

class Home < SitePrism::Page
  set_url '/index.htm'
  set_url_matcher(/google.com\/?/)

  element :search_field, 'input[name="q"]'
  element :search_button, 'button[name="btnK"]'
  elements :footer_links, '#footer a'
  section :menu, MenuSection, '#gbx3'
end

class SearchResults < SitePrism::Page
  set_url_matcher(/google.com\/results\?.*/)

  section :menu, MenuSection, '#gbx3'
  sections :search_results, SearchResultSection, '#results li'

  def search_result_links
    search_results.map { |result| result.title['href'] }
  end
end
<commit_msg>Updated urls for dev setup and creating issues<commit_after># SitePrism
[![Gem Version](https://badge.fury.io/rb/site_prism.svg)](https://badge.fury.io/rb/site_prism)
[![Build Status](https://travis-ci.org/natritmeyer/site_prism.png)](https://travis-ci.org/natritmeyer/site_prism)

_A Page Object Model DSL for Capybara_

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern,
for use with Capybara in automated acceptance testing.

Find the pretty documentation here: http://rdoc.info/gems/site_prism/frames

Make sure to add your project/company to https://github.com/natritmeyer/site_prism/wiki/Who-is-using-SitePrism

## Developing / Contributing to SitePrism

We love it when people want to get involved with our Open Source Project.

We have a brief set of setup docs [HERE](https://github.com/site-prism/site_prism/blob/master/development_setup.md)

## Supported Rubies / Browsers

SitePrism is built and tested to work on Ruby 2.4 - 2.6. Ruby 2.3 (Now EOL), is supported but not tested against.
If you are using SitePrism with Ruby 2.3 it is highly advisable to upgrade to a more modern Ruby
such as 2.5 or 2.6, if for any other reason, to get a noticeable speed boost!

SitePrism should run on all major browsers. The gem's integration tests are ran on Chrome and Firefox.

If you find you cannot integrate nicely with SitePrism, please open an
[issue request](https://github.com/site-prism/site_prism/issues/new)

## Synopsis

Here's an overview of how SitePrism is designed to be used:

```ruby
# define our site's pages

class Home < SitePrism::Page
  set_url '/index.htm'
  set_url_matcher(/google.com\/?/)

  element :search_field, 'input[name="q"]'
  element :search_button, 'button[name="btnK"]'
  elements :footer_links, '#footer a'
  section :menu, MenuSection, '#gbx3'
end

class SearchResults < SitePrism::Page
  set_url_matcher(/google.com\/results\?.*/)

  section :menu, MenuSection, '#gbx3'
  sections :search_results, SearchResultSection, '#results li'

  def search_result_links
    search_results.map { |result| result.title['href'] }
  end
end

{'fraction_non_alphanumeric': 0.10252775809118828, 'fraction_numerical': 0.006614694070399244, 'mean_word_length': 4.571052631578947, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1708612', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1342, 'n_words': 467}