<commit_before># Rack::Inspector

Rack middleware to remotely inspect request and response data for Ruby applications.

## Installation

Add this line to your application's Gemfile:

```
gem 'rack-reporter'
```

And then execute:

```
bundle
```

Or install it yourself as:

```
$ gem install rack-reporter
```

## Usage

Edit your `config.ru` file:

```ruby
# Require inspector middleware
require "rack/inspector"

# Use middleware
use Rack::Inspector

# Run application
run MyApp
```

## Configure

You can configure inspection with options:

```ruby
# Will report all requests
use Rack::Inspector, match_all: true

# Report only specific requests with regular expressions
use Rack::Inspector, routes: /api/

# Report requests for multiple patterns
use Rack::Inspector, routes: [/api/, /account/]
```

## Testing

Execute test suite with:

```
rake test
```

## Contributing<commit_msg>Rename match options<commit_after># Rack::Inspector

Rack middleware to remotely inspect request and response data for Ruby applications.

## Installation

Add this line to your application's Gemfile:

```
gem 'rack-reporter'
```

And then execute:

```
bundle
```

Or install it yourself as:

```
$ gem install rack-reporter
```

## Usage

Edit your `config.ru` file:

```ruby
# Require inspector middleware
require "rack/inspector"

# Use middleware
use Rack::Inspector

# Run application
run MyApp
```

## Configure

You can configure inspection with options:

```ruby
# Will report all requests
use Rack::Inspector, match_all: true

# Report only specific requests with regular expressions
use Rack::Inspector, match: /api/

# Report requests for multiple patterns
use Rack::Inspector, match: [/api/, /account/]
```

## Testing

Execute test suite with:

```
rake test
```

## Contributing
{'fraction_non_alphanumeric': 0.11229646266142616, 'fraction_numerical': 0.0, 'mean_word_length': 4.729903536977492, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5336016', 'n_tokens_mistral': 578, 'n_tokens_neox': 533, 'n_words': 201}