<commit_before><?php

namespace aurora\util;


class cookie
{
	public static function set($name, $value="", $lifetime=0, $path="", $samesite="Strict",
				   $domain="", $secure=true, $httponly=true)
	{
		return setcookie($name, $value, ["expires"  => $lifetime ? time() + $lifetime : 0,
						 "path"     => $path,
						 "samesite" => $samesite,
						 "domain"   => $domain,
						 "secure"   => $secure,
						 "httponly" => $httponly]);
	}
}<commit_msg>util\cookie: user SameSite Lax by default<commit_after><?php

namespace aurora\util;


class cookie
{
	public static function set($name, $value="", $lifetime=0, $path="", $samesite="Lax",
				   $domain="", $secure=true, $httponly=true)
	{
		return setcookie($name, $value, ["expires"  => $lifetime ? time() + $lifetime : 0,
						 "path"     => $path,
						 "samesite" => $samesite,
						 "domain"   => $domain,
						 "secure"   => $secure,
						 "httponly" => $httponly]);
	}
}
{'fraction_non_alphanumeric': 0.1997874601487779, 'fraction_numerical': 0.004250797024442083, 'mean_word_length': 3.3013698630136985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3776889', 'n_tokens_mistral': 407, 'n_tokens_neox': 327, 'n_words': 73}