<commit_before># Jbuilder::Jsonapi

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'jbuilder-jsonapi'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jbuilder-jsonapi

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Update the readme with an example<commit_after># Jbuilder::Jsonapi

[Jbuilder](https://github.com/rails/jbuilder) extension that makes following the [JSON API](http://jsonapi.org/) conventions easier.

## Usage

This library will extend Jbuilder and add a few methods to the `json` object in the templates.

## Resource Methods

### `links!`

The value of the "links" key is a JSON object that represents related resources.

```ruby
json.links do
  json.links! post, :comments, :user, :tags
end
```

Renders to:

```json
{
  "links": {
    "comments":["1", "2", "3"],
    "user":"42",
    "tags":["1", "1337"]
  }
}
```

## Installation

Add this line to your application's Gemfile:

    gem 'jbuilder-jsonapi'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jbuilder-jsonapi


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

Distributed under the MIT license. See [LICENSE](LICENSE.txt) for details.
{'fraction_non_alphanumeric': 0.11743772241992882, 'fraction_numerical': 0.011862396204033215, 'mean_word_length': 3.8477011494252875, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7161686', 'n_tokens_mistral': 546, 'n_tokens_neox': 513, 'n_words': 211}