<commit_before><?php

/*
 * eduVPN - End-user friendly VPN.
 *
 * Copyright: 2016-2018, The Commons Conservancy eduVPN Programme
 * SPDX-License-Identifier: AGPL-3.0+
 */

namespace SURFnet\VPN\Common\Http;

use SURFnet\VPN\Common\Http\Exception\HttpException;

class RequireEntitlementHook implements BeforeHookInterface
{
    /** @var array<string> */
    private $entitlementList;

    /**
     * @param array<string> $entitlementList
     */
    public function __construct(array $entitlementList)
    {<commit_msg>add comment<commit_after><?php

/*
 * eduVPN - End-user friendly VPN.
 *
 * Copyright: 2016-2018, The Commons Conservancy eduVPN Programme
 * SPDX-License-Identifier: AGPL-3.0+
 */

namespace SURFnet\VPN\Common\Http;

use SURFnet\VPN\Common\Http\Exception\HttpException;

/**
 * Require the user to have any of the entitlements provided a constructor
 * parameter.
 */
class RequireEntitlementHook implements BeforeHookInterface
{
    /** @var array<string> */
    private $entitlementList;

    /**
     * @param array<string> $entitlementList
     */
    public function __construct(array $entitlementList)
    {
{'fraction_non_alphanumeric': 0.11297440423654016, 'fraction_numerical': 0.0176522506619594, 'mean_word_length': 3.7053941908713695, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2346607', 'n_tokens_mistral': 384, 'n_tokens_neox': 357, 'n_words': 80}