<commit_before><?php

namespace Rougin\Weasley\Middleware;

use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Psr\Http\Message\ServerRequestInterface;
use Rougin\Slytherin\Http\Response;

/**
 * Cross Origin Headers Middleware
 *
 * @package Weasley
 * @author  <NAME> <<EMAIL>>
 */
class CrossOriginHeaders implements MiddlewareInterface
{
    const METHODS = 'Access-Control-Allow-Methods';

    const ORIGIN = 'Access-Control-Allow-Origin';

    /**
     * @var array
     */
    protected $allowed = array();

    /**
     * @var array
     */
    protected $methods = array('GET', 'POST', 'PUT', 'DELETE', 'OPTIONS');

    /**
     * Initializes the middleware instance.
     *
     * @param array|null $allowed
     * @param array|null $methods
     */
    public function __construct(array $allowed = null, array $methods = null)<commit_msg>Update CrossOriginHeaders<commit_after><?php

namespace Rougin\Weasley\Middleware;

use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Psr\Http\Message\ServerRequestInterface;
use Rougin\Slytherin\Http\Response;

/**
 * Cross Origin Headers Middleware
 *
 * @package Weasley
 * @author  <NAME> <<EMAIL>>
 */
class CrossOriginHeaders implements MiddlewareInterface
{
    const METHODS = 'Access-Control-Allow-Methods';

    const ORIGIN = 'Access-Control-Allow-Origin';

    /**
     * @var array
     */
    protected $allowed = array();

    /**
     * @var array
     */
    protected $methods = array('GET', 'POST', 'PUT', 'DELETE', 'OPTIONS');

    /**
     * Initializes the middleware instance.
     *
     * @param array|null $allowed
     * @param array|null $methods
     */
    public function __construct(array $allowed = null, array $methods = null)
{'fraction_non_alphanumeric': 0.1277292576419214, 'fraction_numerical': 0.0, 'mean_word_length': 3.4490291262135924, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '7043032', 'n_tokens_mistral': 544, 'n_tokens_neox': 542, 'n_words': 124}