<commit_before><?php

namespace Gourmet\TwitterBootstrap\Controller\Component;

use Cake\Controller\Component\FlashComponent as CakeFlashComponent;
use Cake\Network\Exception\InternalErrorException;
use Cake\Utility\Inflector;

class FlashComponent extends CakeFlashComponent
{
    /**
     * Magic method for verbose flash methods based on element names.
     *
     * @param string $name Element name to use.
     * @param array $args Parameters to pass when calling `FlashComponent::set()`.
     * @return void
     * @throws \Cake\Network\Exception\InternalErrorException If missing the flash message.
     */
    public function __call($name, $args)
    {
        if ('error' == $name) {
            $name = 'danger';
        }

        $options = ['element' => 'Gourmet/TwitterBootstrap.' . Inflector::underscore($name)];

        if (count($args) < 1) {
            throw new InternalErrorException('Flash message missing.');
        }

        if (!empty($args[1])) {
            $options += (array)$args[1];
        }

        $this->set($args[0], $options);<commit_msg>Re-alias core `FlashComponent`<commit_after><?php

namespace Gourmet\TwitterBootstrap\Controller\Component;

use Cake\Controller\Component\FlashComponent as Component;
use Cake\Network\Exception\InternalErrorException;
use Cake\Utility\Inflector;

class FlashComponent extends Component
{
    /**
     * Magic method for verbose flash methods based on element names.
     *
     * @param string $name Element name to use.
     * @param array $args Parameters to pass when calling `FlashComponent::set()`.
     * @return void
     * @throws \Cake\Network\Exception\InternalErrorException If missing the flash message.
     */
    public function __call($name, $args)
    {
        if ('error' == $name) {
            $name = 'danger';
        }

        $options = ['element' => 'Gourmet/TwitterBootstrap.' . Inflector::underscore($name)];

        if (count($args) < 1) {
            throw new InternalErrorException('Flash message missing.');
        }

        if (!empty($args[1])) {
            $options += (array)$args[1];
        }

        $this->set($args[0], $options);
{'fraction_non_alphanumeric': 0.12656467315716272, 'fraction_numerical': 0.0037088548910523874, 'mean_word_length': 2.8398576512455516, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6260966', 'n_tokens_mistral': 617, 'n_tokens_neox': 587, 'n_words': 155}