<commit_before><?php declare(strict_types=1);

/**
 * Abstract Controller
 *
 * @package  Spin
 */

namespace Spin\Core;

use Spin\Core\AbstractBaseClass;
use Spin\Core\ControllerInterface;

abstract class Controller extends AbstractBaseClass implements ControllerInterface
{
  /** @var        mixed          The body received for POST, PUT, PATCH */
  protected $body;

  /**
   * Constructor
   */
  public function __construct()
  {
    parent::__construct();
  }

  /**
   * Initialization method
   *
   * This method is called right after the object has been created
   * before any route specific Middleware handlers
   *
   * @param  array $args    Path variable arguments as name=value pairs
   */
  public function initialize(array $args)
  {
  }

  /**
   * Default handle() method for all HTTP Methods.
   *<commit_msg>Removed $body property in controller<commit_after><?php declare(strict_types=1);

/**
 * Abstract Controller
 *
 * @package  Spin
 */

namespace Spin\Core;

use Spin\Core\AbstractBaseClass;
use Spin\Core\ControllerInterface;

abstract class Controller extends AbstractBaseClass implements ControllerInterface
{
  /**
   * Constructor
   */
  public function __construct()
  {
    parent::__construct();
  }

  /**
   * Initialization method
   *
   * This method is called right after the object has been created
   * before any route specific Middleware handlers
   *
   * @param  array $args    Path variable arguments as name=value pairs
   */
  public function initialize(array $args)
  {
  }

  /**
   * Default handle() method for all HTTP Methods.
   *
{'fraction_non_alphanumeric': 0.09371069182389936, 'fraction_numerical': 0.0012578616352201257, 'mean_word_length': 3.1978891820580473, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1169916', 'n_tokens_mistral': 451, 'n_tokens_neox': 434, 'n_words': 141}