<commit_before>package Mojolicious::Plugin::Restify;
use Mojo::Base 'Mojolicious::Plugin';

use Mojo::Util qw(camelize);

our $VERSION = '0.02';

sub register {
  my ($self, $app, $conf) = @_;

  $conf //= {};
  # over defaults to the standard route condition check (allow all)
  $conf->{over} //= 'standard';
  # unders are added to all the element resource routes by default
  $conf->{under} //= 1;

  # When adding route conditions, warn developers if the exported conditions
  # already exist.
  if (exists $app->routes->conditions->{int}) {
    $app->log->debug("The int route condition already exists, skipping");
  }
  else {
    $app->routes->add_condition(
      int => sub {
        my ($r, $c, $captures, $pattern) = @_;
        my $int
          = defined $pattern
          ? ($captures->{$pattern} // $captures->{int})
          : ($captures->{int} // '');
<commit_msg>Version bump.<commit_after>package Mojolicious::Plugin::Restify;
use Mojo::Base 'Mojolicious::Plugin';

use Mojo::Util qw(camelize);

our $VERSION = '0.03';

sub register {
  my ($self, $app, $conf) = @_;

  $conf //= {};
  # over defaults to the standard route condition check (allow all)
  $conf->{over} //= 'standard';
  # unders are added to all the element resource routes by default
  $conf->{under} //= 1;

  # When adding route conditions, warn developers if the exported conditions
  # already exist.
  if (exists $app->routes->conditions->{int}) {
    $app->log->debug("The int route condition already exists, skipping");
  }
  else {
    $app->routes->add_condition(
      int => sub {
        my ($r, $c, $captures, $pattern) = @_;
        my $int
          = defined $pattern
          ? ($captures->{$pattern} // $captures->{int})
          : ($captures->{int} // '');

{'fraction_non_alphanumeric': 0.17044167610419025, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 3.0434782608695654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '1190539', 'n_tokens_mistral': 580, 'n_tokens_neox': 563, 'n_words': 163}