<commit_before><?php

namespace Mintbridge\EloquentAuditing;

use Auth;
use Mintbridge\EloquentAuditing\Activity;

class Auditor
{
    public static function record($eventName, $model)
    {
        // save photo to the loaded model
        $action = new Activity([
            'event' => $eventName,
            'data'  => $model->getDirty()
        ]);

        // set the user
        $action->user()->associate(Auth::user());

        $model->activities()->save($action);
    }
}
<commit_msg>Correcting comments for save activity<commit_after><?php

namespace Mintbridge\EloquentAuditing;

use Auth;
use Mintbridge\EloquentAuditing\Activity;

class Auditor
{
    public static function record($eventName, $model)
    {
        // save change data with event
        $action = new Activity([
            'event' => $eventName,
            'data'  => $model->getDirty()
        ]);

        // set the user
        $action->user()->associate(Auth::user());

        $model->activities()->save($action);
    }
}

{'fraction_non_alphanumeric': 0.140177690029615, 'fraction_numerical': 0.0, 'mean_word_length': 2.4726027397260273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4113403', 'n_tokens_mistral': 306, 'n_tokens_neox': 298, 'n_words': 67}