<commit_before><?php

namespace CSP\Directive;

use CSP\Sandbox\Token;

/**
 * Rules for sandboxing iframes
 */
class SandboxDirective extends Directive {

	const NAME = 'sandbox';

	protected $_name = self::NAME;

	public function setValue(Token $token)
	{
		return parent::setValue($token);
	}
}<commit_msg>SandboxDirective now complies with new Directive interface<commit_after><?php

namespace CSP\Directive;

use CSP\Sandbox\TokenList;

/**
 * Rules for sandboxing iframes
 */
class SandboxDirective extends Directive {

	const NAME = 'sandbox';

	public function setValue(TokenList $tokens)
	{
		return parent::setValue($tokens);
	}

	public function renderValue()
	{
		return $this->getValue()->render();
	}
}
{'fraction_non_alphanumeric': 0.11871508379888268, 'fraction_numerical': 0.0, 'mean_word_length': 4.877049180327869, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5380626', 'n_tokens_mistral': 245, 'n_tokens_neox': 231, 'n_words': 58}