<commit_before><?php

namespace IbanDominguez\RestUp;

use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Exception;

class Route
{

  /**
   * @var IbanDominguez\RestUp\Resource
   */
  protected $resource;

  /**
   * @var array
   */
  protected $routesNames = [
    'list'   => ['method' => 'GET',    'path' => '/%s'],
    'show'   => ['method' => 'GET',    'path' => '/%s/{id}'],
    'save'   => ['method' => 'POST',   'path' => '/%s'],
    'update' => ['method' => 'PUT',    'path' => '/%s/{id}'],
    'delete' => ['method' => 'DELETE', 'path' => '/%s/{id}'],
  ];

  /**
   * @param string
   * @param string
   * @param string
   * @param array
   * @return void
   */
  public function __construct($name, $resource)
  {<commit_msg>typed params<commit_after><?php

namespace IbanDominguez\RestUp;

use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use IbanDominguez\RestUp\Resource;
use Exception;

class Route
{

  /**
   * @var IbanDominguez\RestUp\Resource
   */
  protected $resource;

  /**
   * @var array
   */
  protected $routesNames = [
    'list'   => ['method' => 'GET',    'path' => '/%s'],
    'show'   => ['method' => 'GET',    'path' => '/%s/{id}'],
    'save'   => ['method' => 'POST',   'path' => '/%s'],
    'update' => ['method' => 'PUT',    'path' => '/%s/{id}'],
    'delete' => ['method' => 'DELETE', 'path' => '/%s/{id}'],
  ];

  /**
   * @param string
   * @param string
   * @param string
   * @param array
   * @return void
   */
  public function __construct($name, Resource $resource)
  {
{'fraction_non_alphanumeric': 0.22066869300911854, 'fraction_numerical': 0.0, 'mean_word_length': 2.928400954653938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '1145294', 'n_tokens_mistral': 594, 'n_tokens_neox': 588, 'n_words': 128}