<commit_before><?php

namespace Sitemap\Sitemap;

class SitemapEntry
{
    const CHANGEFREQ_ALWAYS  = 'always';
    const CHANGEFREQ_HOURLY  = 'hourly';
    const CHANGEFREQ_DAILY   = 'daily';
    const CHANGEFREQ_WEEKLY  = 'weekly';
    const CHANGEFREQ_MONTHLY = 'monthly';
    const CHANGEFREQ_YEARLY  = 'yearly';
    const CHANGEFREQ_NEVER   = 'never';

    protected $location;

    protected $lastMod;

    protected $priority;

    protected $changeFreq;

    public function setLastMod($lastMod)
    {
        if ($lastMod instanceof \DateTime) {
            $lastMod = $lastMod->format('U');
        }

        $this->lastMod = $lastMod;
<commit_msg>Create SitemapEntry.php constructor<commit_after><?php

namespace Sitemap\Sitemap;

class SitemapEntry
{
    const CHANGEFREQ_ALWAYS  = 'always';
    const CHANGEFREQ_HOURLY  = 'hourly';
    const CHANGEFREQ_DAILY   = 'daily';
    const CHANGEFREQ_WEEKLY  = 'weekly';
    const CHANGEFREQ_MONTHLY = 'monthly';
    const CHANGEFREQ_YEARLY  = 'yearly';
    const CHANGEFREQ_NEVER   = 'never';

    protected $location;

    protected $lastMod;

    protected $priority;

    protected $changeFreq;

    public function __construct($loc = null, $lastMod = null, $changeFreq = null, $priority = null)
    {
        $this->setLocation($loc);
        $this->setLastMod($lastMod);
        $this->setChangeFreq($changeFreq);
        $this->setPriority($priority);
    }

    public function setLastMod($lastMod)
    {
        if ($lastMod instanceof \DateTime) {
            $lastMod = $lastMod->format('U');
        }

        $this->lastMod = $lastMod;

{'fraction_non_alphanumeric': 0.11457036114570361, 'fraction_numerical': 0.0, 'mean_word_length': 2.9679012345679014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5547073', 'n_tokens_mistral': 570, 'n_tokens_neox': 536, 'n_words': 106}