<commit_before># Contributing to SimpleResource

## Forking the project

1. Click the "Fork" button in https://github.com/jarijokinen/simple_resource
2. Clone your fork (`git clone https://github.com/[username]/simple_resource.git`)
3. Track the original repository (`git remote add upstream https://github.com/jarijokinen/simple_resource.git`)
4. Fetch new changes from the original repository (`git fetch upstream`)
5. Merge any changes fetched from the original repository (`git merge upstream/master`)

## Using your own fork in your applications

Add this line to your application's Gemfile:

    gem "simple_resource", git: "https://github.com/[username]/simple_resource.git"

Replace the [username] with your GitHub username.

And then execute:

    $ bundle

## Running tests

Start Guard:

    $ bundle exec guard start

Run all specs by pressing the enter.

## Adding a new feature

1. Fork the project
2. Run tests and make sure they pass
3. Create a new branch (`git checkout -b my-new-feature`)
4. Write tests for your new feature and make sure they fail
5. Write a code for your new feature and make sure all tests pass
6. Commit your changes (`git commit -am 'Add some feature'`)
7. Push your branch into the repository (`git push origin my-new-feature`)

## Adding your changes to the original repository

1. Create a new Pull Request in GitHub<commit_msg>Update documentation about testing<commit_after># Contributing to SimpleResource

## Forking the project

1. Click the "Fork" button in https://github.com/jarijokinen/simple_resource
2. Clone your fork (`git clone https://github.com/[username]/simple_resource.git`)
3. Track the original repository (`git remote add upstream https://github.com/jarijokinen/simple_resource.git`)
4. Fetch new changes from the original repository (`git fetch upstream`)
5. Merge any changes fetched from the original repository (`git merge upstream/master`)

## Using your own fork in your applications

Add this line to your application's Gemfile:

    gem "simple_resource", git: "https://github.com/[username]/simple_resource.git"

Replace the [username] with your GitHub username.

And then execute:

    $ bundle

## Running tests

    $ cd spec/dummy
    $ rake db:setup
    $ rake db:test:clone
    $ cd ../..
    $ rake spec

## Adding a new feature

1. Fork the project
2. Run tests and make sure they pass
3. Create a new branch (`git checkout -b my-new-feature`)
4. Write tests for your new feature and make sure they fail
5. Write a code for your new feature and make sure all tests pass
6. Commit your changes (`git commit -am 'Add some feature'`)
7. Push your branch into the repository (`git push origin my-new-feature`)

## Adding your changes to the original repository

1. Create a new Pull Request in GitHub
{'fraction_non_alphanumeric': 0.0852824757106873, 'fraction_numerical': 0.009355883411299028, 'mean_word_length': 4.036231884057971, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '3341267', 'n_tokens_mistral': 791, 'n_tokens_neox': 750, 'n_words': 368}