<commit_before>rails_exception_handler_admin
=============================

#### An administrator interface for the rails_exception_handler gem.

## Installation

Set up and install [rails_exception_handler](https://github.com/Sharagoz/rails_exception_handler) in this or another application.
Add the line below to your gemfile and run bundler
```
gem 'rails_exception_handler'
```
Mount the rails engine in your application:
```
mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'
```
To add authentication to this end point:
```
# Be sure to customize the lambda to your needs
scope constraints: lambda{|req| User.find(session[:current_user_id]).admin? rescue false }
  mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'
end
```

<commit_msg>More descriptive read me<commit_after>rails_exception_handler_admin
=============================

#### An administrator interface for the rails_exception_handler gem.

## Installation

Set up and install [rails_exception_handler](https://github.com/Sharagoz/rails_exception_handler) in this or another application.
Add the line below to your gemfile and run bundler
```
gem 'rails_exception_handler_admin'
```
Mount the rails engine in your application:
```
mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'
```
To add authentication to this end point:
```
# Be sure to customize the lambda to your needs
scope constraints: lambda{|req| User.find(session[:current_user_id]).admin? rescue false }
  mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'
end
```


{'fraction_non_alphanumeric': 0.13550488599348534, 'fraction_numerical': 0.0, 'mean_word_length': 6.603960396039604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1386832', 'n_tokens_mistral': 438, 'n_tokens_neox': 398, 'n_words': 141}